[PATCH] D43958: [llvm-readobj][ELF] Move ELF note parsing into lib/Object

Scott Linder via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 2 08:10:39 PST 2018


scott.linder updated this revision to Diff 136755.
scott.linder added a comment.

The first patch does not check the bounds on the first note before the user can call getName/getDesc. This patch performs the bounds check ahead of time, when the iterator is first created, and immediately after every increment.


https://reviews.llvm.org/D43958

Files:
  include/llvm/BinaryFormat/ELF.h
  include/llvm/Object/ELF.h
  include/llvm/Object/ELFTypes.h
  tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43958.136755.patch
Type: text/x-patch
Size: 12493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180302/b12299db/attachment.bin>


More information about the llvm-commits mailing list