This is an archive of the discontinued LLVM Phabricator instance.

[04/10] [COFF] Add a bounds checking helper for iterating a coff_resource_dir_table
ClosedPublic

Authored by mstorsjo on Aug 27 2019, 12:05 PM.

Details

Summary

Instead of blindly incrementing pointers in llvm-readobj, use this helper, which does bounds checking against the available section data.

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.Aug 27 2019, 12:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 27 2019, 12:05 PM
rnk accepted this revision.Aug 27 2019, 12:55 PM

lgtm

This revision is now accepted and ready to land.Aug 27 2019, 12:55 PM
This revision was automatically updated to reflect the committed changes.