[PATCH] [Object, MachO] Don't crash on invalid MachO load segments.
Alexey Samsonov
vonosmas at gmail.com
Wed Jun 3 17:31:11 PDT 2015
Hi rafael, filcab,
Currently all load segments are parsed in MachOObjectFile constructor.
If the next load segment cannot be parsed, or if command size are too
small, properly report it through the error code and fail to construct
the object, instead of crashing the program.
http://reviews.llvm.org/D10230
Files:
include/llvm/Object/Error.h
include/llvm/Object/MachO.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: D10230.27076.patch
Type: text/x-patch
Size: 8056 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150604/c3d53e09/attachment.bin>
More information about the llvm-commits
mailing list