-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ELF loader crashes on arm-linux-gnueabi-gcc
binary (Found section header that overlaps with program header.
)
#302
Comments
We should check if there really is an overlap or if that is a bug in elf-edit. That said, there is nothing in the ELF standard that prohibits sections from overlapping, so we shouldn't be erroring out if it happens |
Some additional
From the output of
And the following section headers:
So the program header offset |
Then again, it's not sufficient to just drop the validity check in the these lines: macaw/base/src/Data/Macaw/Memory/ElfLoader.hs Lines 1170 to 1175 in 9d2e1d4
As the following lines are: macaw/base/src/Data/Macaw/Memory/ElfLoader.hs Lines 1176 to 1180 in 9d2e1d4
If |
…er error This error is caused by a bug in the IntervalMap implementation prior to 0.6.2, which had inconsistent semantics for empty intervals (see: bokesan/IntervalMap#9) fixes #302
…er error This error is caused by a bug in the IntervalMap implementation prior to 0.6.2, which had inconsistent semantics for empty intervals (see: bokesan/IntervalMap#9) fixes #302
…er error This error is caused by a bug in the IntervalMap implementation prior to 0.6.2, which had inconsistent semantics for empty intervals (see: bokesan/IntervalMap#9) fixes #302
…er error This error is caused by a bug in the IntervalMap implementation prior to 0.6.2, which had inconsistent semantics for empty intervals (see: bokesan/IntervalMap#9) fixes #302
Take the following program (adapted from #301 (comment)):
And compile it with
arm-linux-gnueabi-gcc
like so:And run it through this test harness:
It will crash with the following error:
Curiously, the same error does not occur if you instead compile this program with
musl-gcc
:The text was updated successfully, but these errors were encountered: