]> Savannah Git Hosting - gnulib.git/commit
realloc: still more improvements for realloc (p, 0)
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 Oct 2024 20:51:29 +0000 (13:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Oct 2024 04:57:17 +0000 (21:57 -0700)
commit4d7d5e427961785715dae8e60505e2e830e1a5db
treeec7a0597ba57d18cf922cb1b026e7f97b0f33d0b
parent8af18a604df68133e748acea295c6dfca03673fc
realloc: still more improvements for realloc (p, 0)

* doc/posix-functions/malloc.texi: AIX is sans _LINUX_SOURCE_COMPAT.
* doc/posix-functions/realloc.texi:
Give more details about what recent POSIX versions say,
and fix some misperceptions about C89 through C11.
Document that the GNU behavior does not conform to POSIX,
and that AIX's behavior with _LINUX_SOURCE_COMPAT
matches glibc's circa 1999 behavior, not its current behavior.
Be a little less confident about realloc-gnu, since it doesn't
fully implement current glibc behavior.
Give more details about when memory leaks or false positives can occur.
* doc/posix-functions/reallocarray.texi:
Say that it shares realloc’s woes with zero sizes.
ChangeLog
doc/posix-functions/malloc.texi
doc/posix-functions/realloc.texi
doc/posix-functions/reallocarray.texi