File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1995,8 +1995,9 @@ MachOObjectFile::getSectionContents(DataRefImpl Sec) const {
19951995 // Check for large mach-o files where the section contents might exceed
19961996 // 4GB. MachO::section_64 objects only have 32 bit file offsets to the
19971997 // section contents and can overflow in dSYM files. We can track this and
1998- // adjust the section offset to be 64 bit safe.
1999- // Assumes the sections are ordered.
1998+ // adjust the section offset to be 64 bit safe. If sections overflow then
1999+ // section ordering is enforced. If sections are not ordered, then an error
2000+ // will be returned stopping invalid section data from being returned.
20002001 uint64_t PrevTrueOffset = 0 ;
20012002 uint64_t SectOffsetAdjust = 0 ;
20022003 for (uint32_t SectIdx=0 ; SectIdx<Sec.d .a ; ++SectIdx) {
You can’t perform that action at this time.
0 commit comments