commit | 68588d628a464698031323d8eb42a961c0846ba9 | [log] [tgz] |
---|---|---|
author | Mark Wielaard <mjw@redhat.com> | Thu Dec 25 22:50:21 2014 +0100 |
committer | Mark Wielaard <mjw@redhat.com> | Mon Jan 12 22:02:46 2015 +0100 |
tree | d8d60c63001038466bfb3a8035ee9204c4a63983 | |
parent | 8f2f5801a16626b56546f2c95be4c85a59c2e53a [diff] |
libelf: ar_size cannot be negative. Fix max ar size. Elf_Arhdr ar_size is loff_t, which is signed. Make sure it isn't negative. When the parent start_offset is non-zero maxsize should include it to compensate for ar offset. Found with afl-fuzz. Signed-off-by: Mark Wielaard <mjw@redhat.com>