cppcheck/samples/outOfBounds/bad.c

7 lines
87 B
C
Raw Normal View History

#include <stdio.h>
int main()
{
char str[5];
snprintf(str, 10, "%s", "abc");
}