commit | 8dcc4bf791469a32c3a09ebcc23b309bf75c795f | [log] [tgz] |
---|---|---|
author | Mark Wielaard <mark@klomp.org> | Fri Mar 24 15:06:04 2017 +0100 |
committer | Mark Wielaard <mark@klomp.org> | Mon Apr 03 23:53:10 2017 +0200 |
tree | e739905ff902cfcc7ea8250ccdfb9fe78e34537c | |
parent | b0b58c5e0b34e54194aa042f2310af58ee7de603 [diff] |
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>