Skip to content
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

memsz check disabled for elf64 but not for elf32 #27

Open
defermelowie opened this issue Oct 28, 2023 · 0 comments
Open

memsz check disabled for elf64 but not for elf32 #27

defermelowie opened this issue Oct 28, 2023 · 0 comments

Comments

@defermelowie
Copy link

Why is it that 5ec62e5 only disables this check for elf64 and not for elf32?

If I understand correctly from the elf specification this check should occur for PT_LOAD segments but not for other types.

For examle: PT_LOPROC does have filesz > memsz in an elf32-littleriscv compiled with the riscv-gnu-toolchain which is not against the specification in my understanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant