about summary refs log tree commit diff
path: root/benchtests/bench-memmove-walk.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2018-05-05 18:08:27 -0700
committerPaul Pluzhnikov <ppluzhnikov@google.com>2018-05-05 18:08:27 -0700
commit0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c (patch)
treefb1f587dbe38029797cdf5b3779b51b7cea3d680 /benchtests/bench-memmove-walk.c
parentb289cd9db8286fa6c670104dd5dfcfc68d5d00d6 (diff)
downloadglibc-0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c.tar.gz
glibc-0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c.tar.xz
glibc-0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c.zip
Fix BZ 20419. A PT_NOTE in a binary could be arbitratily large, so using
alloca for it may cause stack overflow.  If the note is larger than
__MAX_ALLOCA_CUTOFF, use dynamically allocated memory to read it in.

2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>

	[BZ #20419]
	* elf/dl-load.c (open_verify): Fix stack overflow.
	* elf/Makefile (tst-big-note): New test.
	* elf/tst-big-note-lib.S: New.
	* elf/tst-big-note.c: New.
Diffstat (limited to 'benchtests/bench-memmove-walk.c')
0 files changed, 0 insertions, 0 deletions