[PATCH] D138830: [llvm] Check for overflows when computing load-command's addresses.

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 28 12:35:11 PST 2022


oontvoo updated this revision to Diff 478332.
oontvoo added a comment.

addressed review comment:

- refactor code so that the overflow checks can be done in place
- remove redundant check
- fix off-by-one


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138830/new/

https://reviews.llvm.org/D138830

Files:
  llvm/lib/Object/MachOObjectFile.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138830.478332.patch
Type: text/x-patch
Size: 5360 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221128/1a1c0b81/attachment.bin>


More information about the llvm-commits mailing list