aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/iconv.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-11-12 15:58:40 -0800
committerRob Landley <rob@landley.net>2020-11-12 19:02:19 -0600
commit2ee4b7207e9dbfd385740d5f142dfb95b0a621ed (patch)
tree68569662f6790ce0bd17d5b7d5142ce436f8ffee /toys/posix/iconv.c
parent0c567294d476ae6cab863e774844cd94e51b88e2 (diff)
downloadtoybox-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 'toys/posix/iconv.c')
0 files changed, 0 insertions, 0 deletions