Currently, when the format string is a non-literal, the only warning emitted and checked for is the non-literal format string. This patch checks the arguments passed to printf/scanf functions and checks that they are valid for the format string. For instance, warning on user defined types or non-pointers to scanf functions. Additionally, if only one argument is present, warn if it is a va_list. For built-in functions, suggest the proper va_list function to fix it.
This revision needs review, but there are no reviewers specified.
Details
Details
- Reviewers
- None
Summary
Diff Detail
Diff Detail