Detect invalid section indexes when we first read them.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 22 May 2015 14:59:27 +0000 (14:59 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 22 May 2015 14:59:27 +0000 (14:59 +0000)
commitcc3f1db34c6395f6bcceebef357b723a3f25ea1d
treecece1e21a5629732867f14db81a3e76767648b36
parent8a95a5095dba4c90da3055eb844541724cd96acc
Detect invalid section indexes when we first read them.

We still detect the same errors, but now we do it earlier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238024 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/MachOObjectFile.cpp
test/Object/Inputs/macho-invalid-section-index-getSectionRawFinalSegmentName [deleted file]
test/Object/macho-invalid.test