[PATCH] D66818: [04/10] [COFF] Add a bounds checking helper for iterating a coff_resource_dir_table
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 12:08:50 PDT 2019
mstorsjo created this revision.
mstorsjo added reviewers: thakis, rnk, ruiu.
Herald added subscribers: seiya, rupprecht, hiraditya.
Herald added a project: LLVM.
Instead of blindly incrementing pointers in llvm-readobj, use this helper, which does bounds checking against the available section data.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66818
Files:
llvm/include/llvm/Object/COFF.h
llvm/lib/Object/COFFObjectFile.cpp
llvm/tools/llvm-readobj/COFFDumper.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66818.217466.patch
Type: text/x-patch
Size: 4346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190827/9075b7fe/attachment.bin>
More information about the llvm-commits
mailing list