diff options
| author | Mark Wielaard <[email protected]> | 2017-03-24 15:06:04 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2017-04-03 23:53:10 +0200 |
| commit | 8dcc4bf791469a32c3a09ebcc23b309bf75c795f (patch) | |
| tree | e739905ff902cfcc7ea8250ccdfb9fe78e34537c /tests/backtrace-dwarf.c | |
| 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 <[email protected]>
Diffstat (limited to 'tests/backtrace-dwarf.c')
0 files changed, 0 insertions, 0 deletions
