readelf: Robustify print_phdr program interpreter printing.
authorMark Wielaard <mjw@redhat.com>
Fri, 7 Feb 2014 13:23:24 +0000 (14:23 +0100)
committerMark Wielaard <mjw@redhat.com>
Fri, 7 Feb 2014 13:23:24 +0000 (14:23 +0100)
commit43c9c2d0d8422cb584e3c97df5edde5d7be53173
treec08635f30757d1822c213a3c3b1007a440c36524
parent50d5b2cbfe7e2d790c91e6f799a59c70ab4839ff
readelf: Robustify print_phdr program interpreter printing.

Check phdr->p_filesz and make sure interpreter string is zero terminated
before calling printf.

Reported-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/readelf.c