inn-CURENT-20140906 issue

Russ Allbery eagle at eyrie.org
Sat Sep 6 21:13:55 UTC 2014


The Doctor <doctor at doctor.nl2k.ab.ca> writes:

> I get

> 1..15
> 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...
Name: reallocarray-t.patch
Type: text/x-diff
Size: 1917 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/inn-workers/attachments/20140906/0ca9cddf/attachment.bin>


More information about the inn-workers mailing list