Sign in
llvm
/
llvm-archive
/
f91d1660b4827134c7666ae9637f21a2741d183f
/
.
/
safecode
/
test
/
mem_safety
/
format_string
/
format_string-015.c
blob: a57bad31de684a76e4933ff171acb8c1f7972d09 [
file
] [
log
] [
blame
]
/* lots of %n's */
#include
<stdio.h>
#include
<string.h>
int
main
()
{
char
buf
[
101
];
int
amt
;
amt
=
buf
[
0
]
=
0
;
while
(
amt
++
<
50
)
strcat
(
buf
,
"%n"
);
printf
(
buf
);
return
0
;
}