[PATCH] D70893: [Object/ELF] - Refine the error reported when section's offset + size overruns the file buffer.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 05:36:24 PST 2019


grimar added inline comments.


================
Comment at: llvm/include/llvm/Object/ELF.h:414
+        Twine::utohexstr(Offset) + ") + sh_size (0x" + Twine::utohexstr(Size) +
+        ") that is greater than the file size " + Twine::utohexstr(Buf.size()));
 
----------------
jhenderson wrote:
> The file size should be in brackets and have the 0x prefix (i.e. `file size (0x1234)`).
Yeah, sorry, done.


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

https://reviews.llvm.org/D70893





More information about the llvm-commits mailing list