Skip to content

Commit eac2e6a

Browse files
committed
Improve error message when section data exceeds 4GB.
1 parent ade2ccc commit eac2e6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Object/MachOObjectFile.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,8 @@ MachOObjectFile::getSectionContents(DataRefImpl Sec) const {
20052005
getStruct<MachO::section_64>(*this, Sections[SectIdx]);
20062006
uint64_t CurrTrueOffset = (uint64_t)CurrSect.offset + SectOffsetAdjust;
20072007
if ((SectOffsetAdjust > 0) && (PrevTrueOffset > CurrTrueOffset))
2008-
return malformedError("section data exceeds 4GB and are not ordered");
2008+
return malformedError("section data exceeds 4GB and section file "
2009+
"offsets are not ordered");
20092010
const uint64_t EndSectFileOffset =
20102011
(uint64_t)CurrSect.offset + CurrSect.size;
20112012
if (EndSectFileOffset > UINT32_MAX)

0 commit comments

Comments
 (0)