diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2018-05-05 18:08:27 -0700 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2018-05-05 18:08:27 -0700 |
commit | 0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c (patch) | |
tree | fb1f587dbe38029797cdf5b3779b51b7cea3d680 /libio/iofwrite_u.c | |
parent | b289cd9db8286fa6c670104dd5dfcfc68d5d00d6 (diff) | |
download | glibc-0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c.tar glibc-0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c.tar.gz glibc-0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c.tar.bz2 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 'libio/iofwrite_u.c')
0 files changed, 0 insertions, 0 deletions