summaryrefslogtreecommitdiff
path: root/libelf/elf32_xlatetom.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2017-03-24 15:06:04 +0100
committerMark Wielaard <mark@klomp.org>2017-04-03 23:53:10 +0200
commit8dcc4bf791469a32c3a09ebcc23b309bf75c795f (patch)
treee739905ff902cfcc7ea8250ccdfb9fe78e34537c /libelf/elf32_xlatetom.c
parentb0b58c5e0b34e54194aa042f2310af58ee7de603 (diff)
downloadelfutils-8dcc4bf791469a32c3a09ebcc23b309bf75c795f.tar.gz
libelf: Check compression ratio before trying to allocate output buffer.
The maximum compression factor (http://www.zlib.net/zlib_tech.html) is 1032:1. Add a sanity check for that before trying to allocate lots of memory and trying to decompress lots of bogus data. https://sourceware.org/bugzilla/show_bug.cgi?id=21301 Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'libelf/elf32_xlatetom.c')
0 files changed, 0 insertions, 0 deletions