Skip to content

runtime: add trivial mmap failure check#117

Merged
TheAssassin merged 1 commit into
AppImage:mainfrom
mischief:mmap
May 30, 2025
Merged

runtime: add trivial mmap failure check#117
TheAssassin merged 1 commit into
AppImage:mainfrom
mischief:mmap

Conversation

@mischief
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

Build for testing:
artifacts x86_64
artifacts i686
artifacts armhf
artifacts aarch64
Use at your own risk.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 1, 2025

Build for testing:
artifacts x86_64
artifacts i686
artifacts armhf
artifacts aarch64
Use at your own risk.

Copy link
Copy Markdown
Member

@TheAssassin TheAssassin left a comment

Choose a reason for hiding this comment

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

Looks good, but in theory, you'd have to add additional checks for open, close etc.

@mischief
Copy link
Copy Markdown
Contributor Author

mischief commented Jan 1, 2025

Looks good, but in theory, you'd have to add additional checks for open, close etc.

i could if you wish, but i thought the mmap was a bit more hazardous since it will likely segfault on failure rather than just give an error when it fails due to the subsequent array access into the pointer.

@TheAssassin
Copy link
Copy Markdown
Member

Sorry for the merge delay, I forgot about this PR.

@mischief
Copy link
Copy Markdown
Contributor Author

i've rebased onto HEAD of main.

@TheAssassin TheAssassin enabled auto-merge (rebase) May 30, 2025 20:03
@TheAssassin TheAssassin merged commit 5e7217b into AppImage:main May 30, 2025
9 checks passed
@TheAssassin
Copy link
Copy Markdown
Member

TheAssassin commented May 30, 2025

Thanks!

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