aboutsummaryrefslogtreecommitdiff
path: root/lib/password.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-01-29 12:35:54 -0800
committerRob Landley <rob@landley.net>2017-01-30 15:49:40 -0600
commitfa84155632bf1c65f455b9872ee35a53cd0d2a19 (patch)
tree4aeb265f200682fb44b03067634ac79275b9f25e /lib/password.c
parent2fcb232df138218438eab508705d4c40d460be69 (diff)
downloadtoybox-fa84155632bf1c65f455b9872ee35a53cd0d2a19.tar.gz
Improve file's ELF parsing.
An ELF file with no program headers is valid, and binutils leaves e_phentsize zero in that case. Fix the corruption check to cope. Also, since notes are in both the program and section headers (and I'm not aware of the possibility of having no sections but still having notes --- where would they be?), look for them in the section headers instead. Also extend the parsing of the .android.note.ident ELF note to include the NDK version information if present. (This won't be present for platform binaries, but will be present for NDK-built binaries such as app libraries.)
Diffstat (limited to 'lib/password.c')
0 files changed, 0 insertions, 0 deletions