-
Notifications
You must be signed in to change notification settings - Fork 25
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
New GCC warnings causing build failure [-Werror=stringop-overflow=] #63
Comments
2 tasks
Looking at the code, it does indeed seem suspicious - but there is a length check against Lines 1221 to 1228 in 23b792d
Recommendation:
|
jphickey
added a commit
to jphickey/FM
that referenced
this issue
Nov 14, 2022
Call "strncpy" with the size parameter indicating the size of the destination buffer, rather than the input string length. A buffer overflow was avoided due to a length check already in the code, but calling the function properly should avoid a warning.
jphickey
added a commit
to jphickey/FM
that referenced
this issue
Nov 14, 2022
Call "strncpy" with the size parameter indicating the size of the destination buffer, rather than the input string length. A buffer overflow was avoided due to a length check already in the code, but calling the function properly should avoid a warning.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Describe the bug
I believe these are newly triggered GCC warnings (treated as errors) that are now causing the standard FM Build + Run workflow to fail.
To Reproduce
Run the Build + Run GitHub Action on the current main branch FM source code.
Expected behavior
Build + Run workflow should run without errors.
Reporter Info
Avi @thnkslprpt
The text was updated successfully, but these errors were encountered: