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

Handle empty file size loadable segments #81

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

mogasergiu
Copy link
Member

In cases such as those if the application has no .data but has .bss, the .bss may end up being alone in an empty filesz loadable segment. Handle such situation by only mmaping file contents if the segment has actual file contents (filesz != 0).

In cases such as those if the application has no .data but has .bss,
the .bss may end up being alone in an empty filesz loadable segment.
Handle such situation by only `mmap`ing file contents if the segment
has actual file contents (filesz != 0).

Signed-off-by: Sergiu Moga <[email protected]>
@Mihnea0Firoiu Mihnea0Firoiu self-requested a review June 18, 2024 08:54
Copy link
Member

@Mihnea0Firoiu Mihnea0Firoiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, thanks!
Reviewed-by: Mihnea Firoiu [email protected]

@razvand razvand added the enhancement New feature or request label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants