llvm-6502/include
Alexey Samsonov 7e699dce03 [Object, MachO] Don't crash on invalid MachO load commands.
Summary:
Currently all load commands are parsed in MachOObjectFile constructor.
If the next load command cannot be parsed, or if command size is too
small, properly report it through the error code and fail to construct
the object, instead of crashing the program.

Test Plan: regression test suite

Reviewers: rafael, filcab

Subscribers: llvm-commits

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239080 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-04 19:57:46 +00:00
..
llvm [Object, MachO] Don't crash on invalid MachO load commands. 2015-06-04 19:57:46 +00:00
llvm-c [C API] Add LLVMStructGetTypeAtIndex. 2015-06-04 09:09:53 +00:00