like the following code, it is obvious fmt string vulnerability:
void log(char* str) {
printf(str);
}
if can detect with self-defined config, how can I detect this vulnerability with CppCheck?
like the following code, it is obvious fmt string vulnerability:
void log(char* str) {
printf(str);
}
if can detect with self-defined config, how can I detect this vulnerability with CppCheck?