about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-06-21 22:43:57 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-06-21 22:43:57 +0200
commit4dd8e7c0ce5ecc7f65e33e60ad2f717b31de32ec (patch)
treebfc9688f34dfc949e8da77d0ec05b684ff64e86f /ChangeLog
parent11ffcacb64a939c10cfc713746b8ec88837f5c4a (diff)
downloadglibc-4dd8e7c0ce5ecc7f65e33e60ad2f717b31de32ec.tar.gz
glibc-4dd8e7c0ce5ecc7f65e33e60ad2f717b31de32ec.tar.xz
glibc-4dd8e7c0ce5ecc7f65e33e60ad2f717b31de32ec.zip
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--ChangeLog17
1 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f96acc89df..4a413005b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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