We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe. All false alarms based on logic, but easy to squash (just initialize).
This one could be avoided w/ simple refactor (move success logic into if) which reduces to one return location (preferred coding style):
cFE/fsw/cfe-core/src/time/cfe_time_api.c
Line 727 in c708d64
Just initialize:
cFE/fsw/cfe-core/src/es/cfe_es_apps.c
Line 648 in c708d64
cFE/fsw/cfe-core/src/sb/cfe_sb_api.c
Line 108 in c708d64
cFE/fsw/cfe-core/src/sb/cfe_sb_task.c
Line 923 in c708d64
Likely resolved if OS_OpenCreate_t initialized the file descriptor on failure:
Line 83 in c708d64
cFE/fsw/cfe-core/src/es/cfe_es_task.c
Line 1341 in 672b2dc
cFE/fsw/cfe-core/src/es/cfe_es_syslog.c
Line 471 in 672b2dc
Describe the solution you'd like See above
Describe alternatives you've considered None
Additional context CodeQL warnings, wait until #972 is resolved
Requester Info Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered:
Note - majority of the osal_id_t file false alarms could be avoided if OS_OpenCreate set the descriptor invalid (OS_OBJECT_ID_UNDEFINED) on failure.
Sorry, something went wrong.
Note the cfe_sb_task.c one has been refactored, wasn't obviously an issue so I'll leave for next round of analysis
Fix nasa#1185, Squash possible uninitialized variable false alarms
5063822
f1bcbe5
Merge pull request #1241 from skliper/fix1185-uninit_vars
d869a19
Fix #1185, Squash possible uninitialized variable false alarms
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
All false alarms based on logic, but easy to squash (just initialize).
This one could be avoided w/ simple refactor (move success logic into if) which reduces to one return location (preferred coding style):
cFE/fsw/cfe-core/src/time/cfe_time_api.c
Line 727 in c708d64
Just initialize:
cFE/fsw/cfe-core/src/es/cfe_es_apps.c
Line 648 in c708d64
cFE/fsw/cfe-core/src/sb/cfe_sb_api.c
Line 108 in c708d64
cFE/fsw/cfe-core/src/sb/cfe_sb_task.c
Line 923 in c708d64
Likely resolved if OS_OpenCreate_t initialized the file descriptor on failure:
cFE/fsw/cfe-core/src/es/cfe_es_apps.c
Line 83 in c708d64
cFE/fsw/cfe-core/src/es/cfe_es_task.c
Line 1341 in 672b2dc
cFE/fsw/cfe-core/src/es/cfe_es_syslog.c
Line 471 in 672b2dc
Describe the solution you'd like
See above
Describe alternatives you've considered
None
Additional context
CodeQL warnings, wait until #972 is resolved
Requester Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered: