diff options
author | Elliott Hughes <enh@google.com> | 2020-11-12 15:58:40 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-11-12 19:02:19 -0600 |
commit | 2ee4b7207e9dbfd385740d5f142dfb95b0a621ed (patch) | |
tree | 68569662f6790ce0bd17d5b7d5142ce436f8ffee /kconfig/menu.c | |
parent | 0c567294d476ae6cab863e774844cd94e51b88e2 (diff) | |
download | toybox-2ee4b7207e9dbfd385740d5f142dfb95b0a621ed.tar.gz |
readelf: harden against invalid input.
I also promised to fix readelf. Where in file(1) I made no attempt to
say what was bad (or even to change `goto bad` to explicitly say that
*anything* was bad), I believe that readelf is much more likely to be
shown invalid ELF files, and that it would be useful to have some clue
as to what's wrong. Relatedly, this patch removes all existing
error_exit() calls in case it's being used on multiple files.
Again, this survived ~24hrs of AFL++ trying to blow its house down.
Test: ~/AFLplusplus/afl-fuzz -i tests/files/elf -o fuzz-out -- ./readelf -a @@
Diffstat (limited to 'kconfig/menu.c')
0 files changed, 0 insertions, 0 deletions