readelf: avoid division by zero on section entry size
authoremaste <emaste@FreeBSD.org>
Fri, 24 Jul 2015 18:00:53 +0000 (18:00 +0000)
committeremaste <emaste@FreeBSD.org>
Fri, 24 Jul 2015 18:00:53 +0000 (18:00 +0000)
commit06d81bde61f2fca37e142fd10605faf5ca128fc4
treed61be4e2b1359bcd57d35490d0bb7093d966968a
parentc58042ff077f8772db2c7cb93ac7574b2773a201
readelf: avoid division by zero on section entry size

ELF Tool Chain tickets #439, #444, #445, #467
Reported by: Alexander Cherepanov <cherepan@mccme.ru> (#467)
Reported by: antiAgainst (others)

Reviewed by: brooks
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2338
contrib/elftoolchain/readelf/readelf.c