-
Notifications
You must be signed in to change notification settings - Fork 2
CMFSUPPORT-3977 : COVERITY TEST. DO NOT MERGE #15
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -193,6 +193,8 @@ int main(int argc, char* argv[]) | |||||
| DmErr_t err; | ||||||
| debugLogFile = stderr; | ||||||
|
|
||||||
| fprintf(stderr, "Test coverity %s \n"); | ||||||
|
||||||
| fprintf(stderr, "Test coverity %s \n"); | |
| fprintf(stderr, "Test coverity\n"); |
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.
Coverity Issue - Missing argument to printf format specifier
No argument for format specifier "%s".
Medium Impact, CWE-685
PRINTF_ARGS
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.
Coverity Issue - Printf arg count mismatch
the format string requires additional arguments
Medium Impact, CWE-685
PW.TOO_FEW_PRINTF_ARGS
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.
Adding -Wno-error=format disables treating format-string issues as errors for this target and can mask real bugs (including the new fprintf format mismatch). It would be safer to fix the offending format string(s) and keep format warnings as errors; if this is only needed for a specific analysis build, consider gating it behind a dedicated configure option/env var rather than always in AM_CFLAGS.