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
..
1999-10-04 22:59:43 +00:00
2013-10-30 17:32:08 +10:00
2013-03-08 21:27:42 +00:00
2013-03-08 16:46:07 +00:00
2013-03-08 21:27:42 +00:00
2000-11-20 17:40:29 +00:00
2013-09-09 09:20:09 +01:00
2007-12-16 22:57:57 +00:00
2012-01-01 07:17:21 -05:00