Instead of blindly incrementing pointers in llvm-readobj, use this helper, which does bounds checking against the available section data.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D66818
[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 Event TimelineThis revision is now accepted and ready to land.Aug 27 2019, 12:55 PM Closed by commit rL370310: [COFF] Add a bounds checking helper for iterating a coff_resource_dir_table (authored by mstorsjo). · Explain WhyAug 29 2019, 1:58 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 217466 llvm/include/llvm/Object/COFF.h
llvm/lib/Object/COFFObjectFile.cpp
llvm/tools/llvm-readobj/COFFDumper.cpp
|