-
Notifications
You must be signed in to change notification settings - Fork 204
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
Fix #2436, Adds an empty string or null pointer check for pipe creation #2440
Merged
Conversation
This file contains 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
chillfig
force-pushed
the
add_emptyString_check
branch
2 times, most recently
from
September 7, 2023 14:18
3891875
to
a650f2b
Compare
chillfig
force-pushed
the
add_emptyString_check
branch
4 times, most recently
from
September 25, 2023 19:18
e66ab7b
to
53ca0df
Compare
chillfig
force-pushed
the
add_emptyString_check
branch
2 times, most recently
from
September 28, 2023 19:08
bb0959b
to
ad75d48
Compare
jphickey
reviewed
Sep 29, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed, looks OK, but I think it needs a test case for passing in NULL as well as the empty string for a name.
Can't do this test in OSAL idmap, because there are some objects that (validly) have no names.
chillfig
force-pushed
the
add_emptyString_check
branch
from
September 30, 2023 02:15
ad75d48
to
a0311d7
Compare
chillfig
force-pushed
the
add_emptyString_check
branch
from
September 30, 2023 02:22
a0311d7
to
e78a7be
Compare
chillfig
added
the
CCB:Ready
Ready for discussion at the Configuration Control Board (CCB)
label
Sep 30, 2023
chillfig
force-pushed
the
add_emptyString_check
branch
from
September 30, 2023 02:23
e78a7be
to
27e6b24
Compare
dzbaker
added
CCB:Approved
Indicates code review and approval by community CCB
and removed
CCB:Ready
Ready for discussion at the Configuration Control Board (CCB)
labels
Oct 5, 2023
dzbaker
added a commit
that referenced
this pull request
Oct 5, 2023
Fix #2436, Adds an empty string or null pointer check for pipe creation
2 tasks
chillfig
force-pushed
the
add_emptyString_check
branch
from
October 5, 2023 20:24
27e6b24
to
f1918c6
Compare
chillfig
force-pushed
the
add_emptyString_check
branch
from
October 10, 2023 22:53
f1918c6
to
58551ac
Compare
dzbaker
added a commit
to nasa/cFS
that referenced
this pull request
Oct 12, 2023
*Combines:* cFE v7.0.0-rc4+dev395 osal v6.0.0-rc4+dev239 **Includes:** *cFE* - nasa/cFE#2440 - nasa/cFE#2450 *osal* - nasa/osal#1422 Co-authored by: Justin Figueroa <chillfig@users.noreply.github.com> Co-authored by: Jacob Hageman <skliper@users.noreply.github.com> Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
dzbaker
added a commit
to nasa/cFS
that referenced
this pull request
Oct 12, 2023
*Combines:* cFE v7.0.0-rc4+dev395 osal v6.0.0-rc4+dev239 **Includes:** *cFE* - nasa/cFE#2440 - nasa/cFE#2450 *osal* - nasa/osal#1422 Co-authored by: Justin Figueroa <chillfig@users.noreply.github.com> Co-authored by: Jacob Hageman <skliper@users.noreply.github.com> Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Checklist (Please check before submitting)
Describe the contribution
-Fixes #2436
Testing performed
build, functional test
Expected behavior changes
Assigns
CFE_SB_BAD_ARGUMENT
to Status when empty string are passed in for thePipeName
System(s) tested on
Additional context
I added a check for PipeName != NULL. This is to ensure that PipeName is not a NULL pointer, which would cause a segmentation fault when attempting to dereference it with PipeName[0].
This empty string check can potentially be performed at a lower level that processes PipeName at time of pipe creation: https://github.com/nasa/osal/blob/b5dd01c91f22ea913b0b87658ec5038c6de5275e/src/os/shared/src/osapi-idmap.c#L1168
Third party code
N/A
Contributor Info - All information REQUIRED for consideration of pull request
Justin Figueroa, Vantage Systems