[Differential] [Updated, 62 lines] D2338: readelf: avoid division by zero for files with invalid sh_entsize
emaste (Ed Maste)
phabric-noreply at FreeBSD.org
Sun Jul 19 11:13:15 UTC 2015
emaste updated this revision to Diff 7069.
emaste added a comment.
This revision now requires review to proceed.
Add a `get_ent_count` helper to check for 0 entsize instead of expanding the check inline everywhere.
CHANGES SINCE LAST UPDATE
https://reviews.freebsd.org/D2338?vs=4930&id=7069
REVISION DETAIL
https://reviews.freebsd.org/D2338
AFFECTED FILES
contrib/elftoolchain/readelf/readelf.c
EMAIL PREFERENCES
https://reviews.freebsd.org/settings/panel/emailpreferences/
To: emaste, brooks
Cc: brooks, freebsd-toolchain-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2338.7069.patch
Type: text/x-patch
Size: 4958 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20150719/10143dbc/attachment.bin>
More information about the freebsd-toolchain
mailing list