]> git.ipfire.org Git - thirdparty/glibc.git/commit
Implement allocation buffers for internal use
authorFlorian Weimer <fweimer@redhat.com>
Wed, 21 Jun 2017 20:43:57 +0000 (22:43 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 21 Jun 2017 20:43:57 +0000 (22:43 +0200)
commit4dd8e7c0ce5ecc7f65e33e60ad2f717b31de32ec
treebfc9688f34dfc949e8da77d0ec05b684ff64e86f
parent11ffcacb64a939c10cfc713746b8ec88837f5c4a
Implement allocation buffers for internal use

This commit adds fixed-size allocation buffers.  The primary use
case is in NSS modules, where dynamically sized data is stored
in a fixed-size buffer provided by the caller.

Other uses include a replacement of mempcpy cascades (which is
safer due to the size checking inherent to allocation buffers).
ChangeLog
include/alloc_buffer.h [new file with mode: 0644]
malloc/Makefile
malloc/Versions
malloc/alloc_buffer_alloc_array.c [new file with mode: 0644]
malloc/alloc_buffer_allocate.c [new file with mode: 0644]
malloc/alloc_buffer_copy_bytes.c [new file with mode: 0644]
malloc/alloc_buffer_copy_string.c [new file with mode: 0644]
malloc/alloc_buffer_create_failure.c [new file with mode: 0644]
malloc/tst-alloc_buffer.c [new file with mode: 0644]