eagle at eyrie.org
Sat Sep 6 21:13:55 UTC 2014
The Doctor <doctor at doctor.nl2k.ab.ca> writes:
> I get
> ok 1 - reallocarray of NULL
> ok 2 - reallocarray after resize
> ok 3 - write to larger memory segment
> ok 4 - reallocarray fails for 2, SIZE_MAX / 2
> # wanted: 12
> # seen: 0
> not ok 5 - ...with correct errno
Ah, thanks, this is a bug in the test suite. It's assuming errno is
preserved across things that definitely will not preserve it portably.
Here's a patch that should fix it, I think. (May have some fuzz since it
started life as a patch against rra-c-util.)
Russ Allbery (eagle at eyrie.org) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1917 bytes
Desc: not available
More information about the inn-workers