[PATCH] [Object, MachO] Don't crash on invalid MachO segment load commands.
Alexey Samsonov
vonosmas at gmail.com
Wed Jun 3 18:04:01 PDT 2015
Hi rafael, filcab,
Properly report the error in segment load commands from MachOObjectFile
constructor instead of crashing the program.
Adjust the test case accordingly.
http://reviews.llvm.org/D10231
Files:
include/llvm/Object/Error.h
lib/Object/Error.cpp
lib/Object/MachOObjectFile.cpp
test/Object/macho-invalid.test
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10231.27077.patch
Type: text/x-patch
Size: 4985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150604/fed0440c/attachment.bin>
More information about the llvm-commits
mailing list