]> Savannah Git Hosting - gnulib.git/commit
safe-alloc: Take advantage of CHERI bounds-checking.
authorBruno Haible <bruno@clisp.org>
Sat, 11 Nov 2023 18:36:36 +0000 (19:36 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 11 Nov 2023 18:36:36 +0000 (19:36 +0100)
commit2d9d3ddae5dde383bac8f133f0551ce511f05f2d
tree313386507615cb120c0affaabf3133092f358cf4
parentaa4ce6623ca357c592cf602b197900207ee38062
safe-alloc: Take advantage of CHERI bounds-checking.

* lib/safe-alloc.h: Include <cheri.h>.
(safe_alloc_realloc_n): When count or size is 0, return a pointer whose
bounds are of size 0, not 1.
ChangeLog
lib/safe-alloc.h