Conversation
| strncpy(param.cbData, notifyStruct.cbData, MAX_BUF); | ||
| param.cbData[MAX_BUF-1] = '\0'; | ||
| LOG("In writeImage callback: cbData=%s, progress=%d, error = %d, error_str=%s, percentage = %d\n", param.cbData, param.status.progress, param.status.error, param.status.error_string, param.status.percentage/100); | ||
| LOG("In writeImage callback: cbData=%s, progress=%d, error = %d, error_str=%s, percentage = %d\n", param.status.progress, param.status.error, param.status.error_string, param.status.percentage/100); |
There was a problem hiding this comment.
Coverity Issue - Invalid type in argument to printf format specifier
Argument "param.status.error_string" to format specifier "%d" was expected to have type "int" but has type "char *".
Medium Impact, CWE-686
PRINTF_ARGS
| strncpy(param.cbData, notifyStruct.cbData, MAX_BUF); | ||
| param.cbData[MAX_BUF-1] = '\0'; | ||
| LOG("In writeImage callback: cbData=%s, progress=%d, error = %d, error_str=%s, percentage = %d\n", param.cbData, param.status.progress, param.status.error, param.status.error_string, param.status.percentage/100); | ||
| LOG("In writeImage callback: cbData=%s, progress=%d, error = %d, error_str=%s, percentage = %d\n", param.status.progress, param.status.error, param.status.error_string, param.status.percentage/100); |
There was a problem hiding this comment.
Coverity Issue - Printf arg count mismatch
the format string requires additional arguments
Medium Impact, CWE-685
PW.TOO_FEW_PRINTF_ARGS
| strncpy(param.cbData, notifyStruct.cbData, MAX_BUF); | ||
| param.cbData[MAX_BUF-1] = '\0'; | ||
| LOG("In writeImage callback: cbData=%s, progress=%d, error = %d, error_str=%s, percentage = %d\n", param.cbData, param.status.progress, param.status.error, param.status.error_string, param.status.percentage/100); | ||
| LOG("In writeImage callback: cbData=%s, progress=%d, error = %d, error_str=%s, percentage = %d\n", param.status.progress, param.status.error, param.status.error_string, param.status.percentage/100); |
There was a problem hiding this comment.
Coverity Issue - Missing argument to printf format specifier
No argument for format specifier "%d".
Medium Impact, CWE-685
PRINTF_ARGS
| strncpy(param.cbData, notifyStruct.cbData, MAX_BUF); | ||
| param.cbData[MAX_BUF-1] = '\0'; | ||
| LOG("In writeImage callback: cbData=%s, progress=%d, error = %d, error_str=%s, percentage = %d\n", param.cbData, param.status.progress, param.status.error, param.status.error_string, param.status.percentage/100); | ||
| LOG("In writeImage callback: cbData=%s, progress=%d, error = %d, error_str=%s, percentage = %d\n", param.status.progress, param.status.error, param.status.error_string, param.status.percentage/100); |
There was a problem hiding this comment.
Coverity Issue - Invalid type in argument to printf format specifier
Argument "param.status.progress" to format specifier "%s" was expected to have type "char *" but has type "enum _mfrUpgradeProgress_t".
Medium Impact, CWE-686
PRINTF_ARGS
| strncpy(param.cbData, notifyStruct.cbData, MAX_BUF); | ||
| param.cbData[MAX_BUF-1] = '\0'; | ||
| LOG("In writeImage callback: cbData=%s, progress=%d, error = %d, error_str=%s, percentage = %d\n", param.cbData, param.status.progress, param.status.error, param.status.error_string, param.status.percentage/100); | ||
| LOG("In writeImage callback: cbData=%s, progress=%d, error = %d, error_str=%s, percentage = %d\n", param.status.progress, param.status.error, param.status.error_string, param.status.percentage/100); |
There was a problem hiding this comment.
Coverity Issue - Invalid type in argument to printf format specifier
Argument "param.status.percentage / 100" to format specifier "%s" was expected to have type "char *" but has type "int".
Medium Impact, CWE-686
PRINTF_ARGS
No description provided.