Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider (sch jbop) (X_X)@==(Q_Q)@

...

Mismatches between arguments and conversion specifiers may result in undefined behavior.

Code Block
bgColor#ffcccc
char const char *error_msg = "Resource not available to user.";
int error_type = 3;
/* ... */
printf("Error (type %s): %d\n", error_type, error_msg);

...

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

FIO00-A

1 ( low ) 1 (

unlikely )

2 ( medium )

P2

L3

Automated Detection

The LDRA tool suite V 7.6.0 is able to detect violations of this recommendation.

...