diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-06-21 22:43:57 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-06-21 22:43:57 +0200 |
commit | 4dd8e7c0ce5ecc7f65e33e60ad2f717b31de32ec (patch) | |
tree | bfc9688f34dfc949e8da77d0ec05b684ff64e86f /ChangeLog | |
parent | 11ffcacb64a939c10cfc713746b8ec88837f5c4a (diff) | |
download | glibc-4dd8e7c0ce5ecc7f65e33e60ad2f717b31de32ec.zip glibc-4dd8e7c0ce5ecc7f65e33e60ad2f717b31de32ec.tar.gz glibc-4dd8e7c0ce5ecc7f65e33e60ad2f717b31de32ec.tar.bz2 |
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).
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1,3 +1,20 @@ +2017-04-21 Florian Weimer <fweimer@redhat.com> + + * malloc/Makefile (tests-internal): Add tst-alloc_buffer. + (routines): Add alloc_buffer_alloc_array, alloc_buffer_allocate, + alloc_buffer_copy_bytes, alloc_buffer_copy_string, + alloc_buffer_create_failure. + * malloc/Versions (__libc_alloc_buffer_alloc_array) + (__libc_alloc_buffer_allocate, __libc_alloc_buffer_copy_bytes) + (__libc_alloc_buffer_copy_string) + (__libc_alloc_buffer_create_failure): Export as GLIBC_PRIVATE. + * malloc/alloc_buffer_alloc_array.c: New file. + * malloc/alloc_buffer_allocate.c: Likewise. + * malloc/alloc_buffer_copy_bytes.c: Likewise. + * malloc/alloc_buffer_copy_string.c: Likewise. + * malloc/alloc_buffer_create_failure.c: Likewise. + * malloc/tst-alloc_buffer.c: Likewise. + 2017-06-21 H.J. Lu <hongjiu.lu@intel.com> * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add |