]> Savannah Git Hosting - gnulib.git/commit
reallocarray: New module
authorDarshit Shah <darnir@gnu.org>
Sun, 13 Aug 2017 17:13:33 +0000 (10:13 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Aug 2017 18:02:40 +0000 (11:02 -0700)
commit98756762a3337722477d2cddc9c0549609efe848
tree4f2c711b6df8dc8eb98f894d589246af4cf667b1
parent0474f8e6a85621c276dfc47099b9863a47f96a0d
reallocarray: New module

reallocarray is a new function in glibc 2.26 to safely allocate an array
of memory locations with integer overflow protection.
* MODULES.html.sh: Add reallocarray.
* doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
* lib/reallocarray.c: New file to implement module reallocarray.
* lib/stdlib.in.h: Add function declarations for reallocarray.
* m4/reallocarray.m4: New file.
* m4/stdlib_h.m4: Declare reallocarray.
* modules/reallocarray: New file.
* modules/reallocarray-test: New file.
* modules/stdlib: Coerce stdlib.h to export reallocarray.
* tests/test-reallocarray.c: New test.
ChangeLog
MODULES.html.sh
doc/glibc-functions/reallocarray.texi [new file with mode: 0644]
lib/reallocarray.c [new file with mode: 0644]
lib/stdlib.in.h
m4/reallocarray.m4 [new file with mode: 0644]
m4/stdlib_h.m4
modules/reallocarray [new file with mode: 0644]
modules/reallocarray-tests [new file with mode: 0644]
modules/stdlib
tests/test-reallocarray.c [new file with mode: 0644]