[PATCH] Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files.

David Majnemer david.majnemer at gmail.com
Mon Jan 12 19:57:55 PST 2015


================
Comment at: lib/Object/MachOObjectFile.cpp:302
@@ +301,3 @@
+      if (Load.C.cmdsize < SegmentLoadSize)
+        report_fatal_error("Too small segment load command size.");
+
----------------
Maybe "Segment load command size is too small."?

http://reviews.llvm.org/D6945

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list