Skip to content

Commit 407ad80

Browse files
committed
code analysis: improvements to c6064
MORSE recently asked us to improve documentation for C6064 specifically asking us to go into detail explaining why this warning is cause for concern. This change explictly outlines possible outcomes of ignoring this warning.
1 parent 2903137 commit 407ad80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/code-quality/c6064.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This warning indicates that the code doesn't provide enough arguments to match a
1313

1414
## Remarks
1515

16-
This defect is likely to cause incorrect output and, in more dangerous cases, can lead to stack overflow.
16+
Supplying too few arguments to a format function leads to undefined behavior, because the function attempts to read values that were never passed. Possible consequences include incorrect output, crashes, or even security vulnerabilities such as information leaks. To ensure stability and safety, always match the number and types of arguments to the format specifiers in the string.
1717

1818
Code analysis name: `MISSING_INTEGER_ARGUMENT_TO_FORMAT_FUNCTION`
1919

0 commit comments

Comments
 (0)