cppcheck/samples/outOfBounds/bad.c

8 lines
88 B
C
Raw Permalink Normal View History

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