[BusyBox 0004214]: printf reads uninitialized memory
bugs at busybox.net
bugs at busybox.net
Thu Jul 17 23:37:43 UTC 2008
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=4214
======================================================================
Reported By: cristic
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 4214
Category: Other
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 07-17-2008 16:37 PDT
Last Modified: 07-17-2008 16:37 PDT
======================================================================
Summary: printf reads uninitialized memory
Description:
Hello, here is a test case that leads printf to read uninitialized memory:
./printf "%Ld\n" 10
39860182724902922
(output varies, since it reads garbage)
The problem is that this execution eventually invokes libc's printf with
the same format specifier, and with the second argument my_xstrtol("10").
This returns a long (4 bytes on my machine), which is printed as a long
long
(8 bytes on my machine). Unfortunately, I don't see an easy fix here,
because most conversion routines in Busybox seem to return longs.
--Cristian
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
07-17-08 16:37 cristic New Issue
07-17-08 16:37 cristic Status new => assigned
07-17-08 16:37 cristic Assigned To => BusyBox
======================================================================
More information about the busybox-cvs
mailing list