Skip to content

add-dbg: reject overflowing mmap ranges - #329

Open
dgruss wants to merge 1 commit into
mainfrom
add-dbg-libelfin-fixes
Open

dgruss wants to merge 1 commit into
mainfrom
add-dbg-libelfin-fixes

Conversation

@dgruss

@dgruss dgruss commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Reject negative offsets and ranges which exceed add-dbg's mapped file. Check the offset first, then compare the requested size with the remaining bytes, so the bounds check cannot overflow.

This is split out from Florian Kargl's #287. The empty-string fix from that PR is already present on main.

@dgruss
dgruss force-pushed the add-dbg-libelfin-fixes branch from d975a0f to 3ce96d7 Compare October 23, 2026 07:57
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

Successfully merging this pull request may close these issues.

2 participants