Paul Pluzhnikov 365722ace6 Fix stack overflow with huge PT_NOTE segment [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.

(cherry picked from commit 0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c)
2018-05-17 14:08:37 +02:00
..
2017-06-14 10:47:25 +09:30
2013-06-05 20:44:03 +00:00
2013-06-05 20:44:03 +00:00
2017-08-28 19:49:18 +02:00
2013-08-21 19:48:48 +02:00
2013-08-21 19:48:48 +02:00
2013-06-05 20:44:03 +00:00
2013-10-18 19:45:36 +05:30