Validate parsed ELF values to prevent out of boundary accesses.
authortobias <tobias@openbsd.org>
Fri, 16 Oct 2015 07:40:12 +0000 (07:40 +0000)
committertobias <tobias@openbsd.org>
Fri, 16 Oct 2015 07:40:12 +0000 (07:40 +0000)
commite239ecc1fd518311e4a4fd95ecaeb245f5ed9230
tree1530fc1799b35d5151fee76fdf7e1ef32b6ddd48
parent2f95621a4723a604bca599f195616393e76ecd1a
Validate parsed ELF values to prevent out of boundary accesses.
While at it, return proper return value when encountering a stripped
binary. Instead of -1 (illegal file), it should be the amount of symbols
that were tried to be resolved.

ok millert
lib/libc/gen/nlist.c