blob: cb55f1eb469698d39fe0288f7051f2f6612c0a34 [file] [log] [blame]
/* strlen() out of bounds */
#include <string.h>
#include <stdio.h>
int main()
{
char *string1 = "A Medium String";
char buf[10];
strncpy(buf, string1, 9);
memset(buf, 'a', 10);
printf("%i\n", strlen(buf));
return 0;
}