Sign in
llvm
/
llvm-archive
/
f8b4f79771a41ee0a0f02ac90619d37ccd834915
/
.
/
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
;
}