You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MachO::Binary::shift does not respect alignment of sections if alignment value is larger than size of a page.
I thought that it could be fixed by a simple patch Zimperium@a63a470
// Take into account sections that may have alignment larger than a size of a page.auto it_maxa = std::max_element(sections_.begin(), sections_.end(),
[](const Section* a, const Section* b) {
return a->alignment() < b->alignment();
});
constsize_t max_alignment = 1 << (*it_maxa)->alignment();
value = align(value, max_alignment);
However, this causes other bugs in layout checker:
LINKEDIT overlap of DYSYMTAB_INDIRECT_SYM and SYMTAB_STR
LINKEDIT segment does not wrap the end of the binary
The text was updated successfully, but these errors were encountered:
MachO::Binary::shift
does not respect alignment of sections if alignment value is larger than size of a page.I thought that it could be fixed by a simple patch Zimperium@a63a470
However, this causes other bugs in layout checker:
The text was updated successfully, but these errors were encountered: