about summary refs log tree commit diff
path: root/malloc/scratch_buffer_grow_preserve.c
Commit message (Collapse)AuthorAgeFilesLines
* scratch_buffer: use union for internal bufferAdhemerval Zanella2017-09-251-2/+2
| | | | | | | | | | | | | | | | | Problem reported by Florian Weimer [1] and solution suggested by Andreas Schwab [2]. It also set the same buffer size independent of architecture max_align_t size. Checked on x86_64-linux-gnu and i686-linux-gnu. * lib/malloc/scratch_buffer.h (struct scratch_buffer): Use an union instead of a max_align_t array for __space, so that __space is the same size on all platforms. * malloc/scratch_buffer_grow_preserve.c (__libc_scratch_buffer_grow_preserve): Likewise. [1] https://sourceware.org/ml/libc-alpha/2017-09/msg00693.html [2] https://sourceware.org/ml/libc-alpha/2017-09/msg00695.html
* Sync scratch_buffer with gnulibAdhemerval Zanella2017-09-081-1/+5
| | | | | | | | | | | | | | This patch syncs the scratch_buffer grom gnulib commit 3866ef6 with GLIBC code. Checked on x86_64-linux-gnu and on a build using build-many-glibcs.py for all major architectures. * include/scratch_buffer.h (scratch_buffer): Use a C99 align method instead of GCC extension. * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h. * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise. * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
* Update copyright dates with scripts/update-copyrights.Joseph Myers2017-01-011-1/+1
|
* Update copyright dates with scripts/update-copyrights.Joseph Myers2016-01-041-1/+1
|
* scratch_buffer_grow_preserve: Add missing #include <string.h>Florian Weimer2015-04-071-0/+1
|
* Add struct scratch_buffer and its internal helper functionsFlorian Weimer2015-04-071-0/+62
These will be used from NSS modules, so they have to be exported.