]> git.ipfire.org Git - thirdparty/glibc.git/commit
Fix BZ 20419. A PT_NOTE in a binary could be arbitratily large, so using
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Sun, 6 May 2018 01:08:27 +0000 (18:08 -0700)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Sun, 6 May 2018 01:08:27 +0000 (18:08 -0700)
commit0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c
treefb1f587dbe38029797cdf5b3779b51b7cea3d680
parentb289cd9db8286fa6c670104dd5dfcfc68d5d00d6
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.
ChangeLog
elf/Makefile
elf/dl-load.c
elf/tst-big-note-lib.S [new file with mode: 0644]
elf/tst-big-note.c [new file with mode: 0644]