[Testcase] Memory returned by malloc not always zeroed.
Buzz
cygwin.buzz@bavag.tmfweb.nl
Wed Mar 7 06:07:00 GMT 2007
Hi,
On three different cygwin 1.5.24-2 systems, attached testprogram
(compile with ``gcc -o mall-test mall-test.c'')
returns many lines like:
n1 S13 p12 is 0x81, not 0
n1 S14 p0 is 0x8c, not 0
n1 S14 p1 is 0x7f, not 0
n1 S14 p2 is 0x14, not 0
n1 S14 p3 is 0x61, not 0
n1 S14 p4 is 0x8c, not 0
n1 S14 p5 is 0x7f, not 0
n1 S14 p6 is 0x14, not 0
n1 S14 p7 is 0x61, not 0
n1 S14 p12 is 0x81, not 0
This indicates malloc returning non-zeroed memory.
Has anybody got a clue as to what's going on?
L8r,
Buzz.
--
) | | ---/ ---/ Yes, this | This message consists of true | I do not
-- | | / / really is | and false bits entirely. | mail for
) | | / / a 72 by 4 +-------------------------------+ any1 but
-- \--| /--- /--- .sigfile. | |perl -pe "s.u(z)\1.as." | me. 4^re
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mall-test.c
URL: <http://cygwin.com/pipermail/cygwin/attachments/20070307/725d5616/attachment.c>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list