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
Describe the bug The return value of fseek is not checked which may cause an unexpected failure.
Expected behavior Check the return value for fseek in elf2cfetbl.c.
Code snips
elf2cfetbl/elf2cfetbl.c
Line 1744 in 10f55fb
Line 1925 in 10f55fb
Line 2278 in 10f55fb
Line 2432 in 10f55fb
Additional context Identified by Coverity: https://scan.coverity.com/projects/arielsadamsnasa-cfs-jsf-rules?tab=overview
Possible solution:
Status = fseek(SrcFileDesc, SeekOffset, SEEK_SET); if (Status != 0) { printf("Error locating Section Header #%d in file '%s'\n", SectionIndex, SrcFilename); return FAILED; } else { fseek(SrcFileDesc, SeekOffset, SEEK_SET); }
Reporter Info Ariel Adams, ASRC Federal
The text was updated successfully, but these errors were encountered:
Fix #85, Check Return Value of fseek
0a93f98
Fix nasa#85, Add checks for all return values from fseek()
4bdd9b7
Successfully merging a pull request may close this issue.
Describe the bug
The return value of fseek is not checked which may cause an unexpected failure.
Expected behavior
Check the return value for fseek in elf2cfetbl.c.
Code snips
elf2cfetbl/elf2cfetbl.c
Line 1744 in 10f55fb
elf2cfetbl/elf2cfetbl.c
Line 1925 in 10f55fb
elf2cfetbl/elf2cfetbl.c
Line 2278 in 10f55fb
elf2cfetbl/elf2cfetbl.c
Line 2432 in 10f55fb
Additional context
Identified by Coverity: https://scan.coverity.com/projects/arielsadamsnasa-cfs-jsf-rules?tab=overview
Possible solution:
Reporter Info
Ariel Adams, ASRC Federal
The text was updated successfully, but these errors were encountered: