glibc/malloc
Will Newton a56ee40b17 malloc: Fix for infinite loop in memalign/posix_memalign.
A very large alignment argument passed to mealign/posix_memalign
causes _int_memalign to enter an infinite loop. Limit the maximum
alignment value to the maximum representable power of two to
prevent this from happening.

Changelog:

2013-10-30  Will Newton  <will.newton@linaro.org>

	[BZ #16038]
	* malloc/hooks.c (memalign_check): Limit alignment to the
	maximum representable power of two.
	* malloc/malloc.c (__libc_memalign): Likewise.
	* malloc/tst-memalign.c (do_test): Add test for very
	large alignment values.
	* malloc/tst-posix_memalign.c (do_test): Likewise.
2013-10-30 14:46:02 -07:00
..
Depend
Makefile rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
Versions
arena.c Add malloc probes for sbrk and heap resizing. 2013-09-20 11:54:58 -03:00
hooks.c malloc: Fix for infinite loop in memalign/posix_memalign. 2013-10-30 14:46:02 -07:00
malloc.c malloc: Fix for infinite loop in memalign/posix_memalign. 2013-10-30 14:46:02 -07:00
malloc.h Remove __malloc_ptr_t. 2013-03-08 21:27:42 +00:00
mallocbug.c
mcheck-init.c
mcheck.c Remove __malloc_size_t. 2013-03-08 16:46:07 +00:00
mcheck.h
memusage.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
memusage.sh
memusagestat.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
morecore.c Remove __malloc_ptr_t. 2013-03-08 21:27:42 +00:00
mtrace.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
mtrace.pl
obstack.c Avoid use of "register" as optimization hint. 2013-06-07 22:24:35 +00:00
obstack.h
set-freeres.c
thread-freeres.c
tst-calloc.c
tst-malloc-usable.c
tst-malloc.c
tst-mallocfork.c
tst-mallocstate.c
tst-mcheck.c
tst-memalign.c malloc: Fix for infinite loop in memalign/posix_memalign. 2013-10-30 14:46:02 -07:00
tst-mtrace.c
tst-mtrace.sh
tst-obstack.c
tst-posix_memalign.c malloc: Fix for infinite loop in memalign/posix_memalign. 2013-10-30 14:46:02 -07:00
tst-pvalloc.c malloc/tst-pvalloc.c: Tidy up code. 2013-10-04 09:15:33 +01:00
tst-realloc.c malloc: Add realloc test. 2013-09-09 09:20:09 +01:00
tst-trim1.c
tst-valloc.c malloc/tst-valloc.c: Tidy up code. 2013-10-04 09:16:41 +01:00