[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.
0001-realloc-more-improvements-for-realloc-p-0.patch
Description: Text Data
- [PATCH v1] realloc: Be consistent with malloc, Alejandro Colomar, 2024/10/18
- Re: [PATCH v1] realloc: Be consistent with malloc, Alejandro Colomar, 2024/10/19
- Re: [PATCH v1] realloc: Be consistent with malloc, Paul Eggert, 2024/10/19
- Re: [PATCH v1] realloc: Be consistent with malloc, Alejandro Colomar, 2024/10/19
- Re: [PATCH v1] realloc: Be consistent with malloc, Paul Eggert, 2024/10/19
- Re: experimenting with realloc behaviour, Bruno Haible, 2024/10/19
- Re: experimenting with realloc behaviour, Bruno Haible, 2024/10/19
- Re: experimenting with realloc behaviour, Paul Eggert, 2024/10/19
- Re: experimenting with realloc behaviour, Bruno Haible, 2024/10/19