]> Savannah Git Hosting - gnulib.git/commit
ialloc: Take advantage of CHERI bounds-checking.
authorBruno Haible <bruno@clisp.org>
Sat, 11 Nov 2023 18:34:26 +0000 (19:34 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 11 Nov 2023 18:34:26 +0000 (19:34 +0100)
commitaa4ce6623ca357c592cf602b197900207ee38062
tree639713bf52398a40cad49d968b2d71d2f6cea82e
parent4daae72c47a59e20f5312c1febb84e4c187e6acc
ialloc: Take advantage of CHERI bounds-checking.

* lib/ialloc.h: Include <cheri.h>.
(irealloc): When s is 0, return a pointer whose bounds are of size 0,
not 1.
(ireallocarray): When n or s is 0, return a pointer whose bounds are of
size 0, not 1.
ChangeLog
lib/ialloc.h