bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: realloc: Improve documentation


From: Paul Eggert
Subject: Re: realloc: Improve documentation
Date: Sat, 19 Oct 2024 14:23:44 -0700
User-agent: Mozilla Thunderbird

Thanks. Some further improvements:

* Document whether realloc can fail when not growing a region.

* Mention what happens to errno.

* Mention how the ISO C standard has evolved here.

* Give more details as to which glibc versions do what.

* In the "practical" section, don't bother mentioning possible actions that no known system does, as this complicates discussion and doesn't help the reader enough to justify inclusion of this info.

* If the program expects successful realloc(p,0) to return non-null but realloc actually returns null, the misbehavior should be false reports of failure, not double-free bugs.


I installed the attached patch to try to improve the Gnulib manual accordingly.

Attachment: 0001-realloc-more-improvements-for-realloc-p-0.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]