Skip to content

Guard getMountInfo against buffer overflows#21

Merged
NathanNeurotic merged 1 commit into
mainfrom
codex/replace-sprintf-with-snprintf-in-getmountinfo
Dec 29, 2025
Merged

Guard getMountInfo against buffer overflows#21
NathanNeurotic merged 1 commit into
mainfrom
codex/replace-sprintf-with-snprintf-in-getmountinfo

Conversation

@NathanNeurotic

Copy link
Copy Markdown
Owner

Summary

  • convert getMountInfo to use snprintf with caller-provided buffer sizes and return errors on truncation
  • free all parsed tokens and surface negative error codes for invalid or oversized mount data
  • update MountParty to pass buffer sizes, handle failures, and protect PART formatting

Testing

  • Not run (not requested)

Codex Task

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@NathanNeurotic NathanNeurotic merged commit 0adc136 into main Dec 29, 2025
2 of 3 checks passed
@NathanNeurotic NathanNeurotic deleted the codex/replace-sprintf-with-snprintf-in-getmountinfo branch January 7, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant