Skip to content
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

Check Return Value of stat #87

Closed
ArielSAdamsNASA opened this issue Sep 27, 2021 · 0 comments · Fixed by #125
Closed

Check Return Value of stat #87

ArielSAdamsNASA opened this issue Sep 27, 2021 · 0 comments · Fixed by #125

Comments

@ArielSAdamsNASA
Copy link

Describe the bug
Calling stat(DstFilename, &dststat) without checking return value. This library function may fail and return an error code.

Expected behavior
Check the return value of stat

Code snips

stat(DstFilename, &dststat);

System observed on:
Coverity: https://scan.coverity.com/projects/arielsadamsnasa-cfs-jsf-rules?tab=overview

Reporter Info
Ariel Adams, ASRC Federal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant