-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Os::File::open Bounded Inputs #4980
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
Open
LeStarch
wants to merge
17
commits into
nasa:devel
Choose a base branch
from
JPL-Devin:devin/1775753537-os-file-open-overloads
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b9622fd
Add Os::File::open overloads for bounded char* and Fw::StringBase
devin-ai-integration[bot] 21cf949
Fix off-by-one: use FW_FIXED_LENGTH_STRING_SIZE + 1 as buffer size bound
devin-ai-integration[bot] 042d243
Address PR review: use ConstStringBase and FileNameStringSize
devin-ai-integration[bot] fcd3c2d
Add unit test rules for bounded char* and ConstStringBase open overloads
devin-ai-integration[bot] 8ba3ff1
Add edge-case death test for unterminated path within bounds
devin-ai-integration[bot] 464df0f
Remove death test from randomized scenarios, keep as direct test only
devin-ai-integration[bot] 9bd554e
Fix dangling m_path pointer in OpenFileCreateString test rule
devin-ai-integration[bot] 03863b7
Fix uniqueness loop condition to match OpenBaseRule pattern
devin-ai-integration[bot] 33b0a78
Remove uniqueness loop from new open rules to prevent filename exhaus…
devin-ai-integration[bot] ebe981d
Restore uniqueness loop in new open rules to match OpenBaseRule pattern
devin-ai-integration[bot] 02c0717
Replace uniqueness loop with early-return for new open rules
devin-ai-integration[bot] e7167fe
Bump MAX_FILES and gracefully handle filename exhaustion in all open …
devin-ai-integration[bot] 354951c
Fix assert trip in unbounded open and improve assert diagnostics
devin-ai-integration[bot] 8f9a671
Keep FileNameStringSize bound and cap test filenames to fit
devin-ai-integration[bot] 725f665
Tighten filename cap: subtract 1 for safety margin
devin-ai-integration[bot] a6ada14
Bound test buffers by FileNameStringSize instead of _POSIX_PATH_MAX
devin-ai-integration[bot] cb9dbc4
Remove getFileSize check for too-long filename in ActiveTextLogger UT
devin-ai-integration[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.