Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
safecode
/
test
/
mem_safety
/
stdlib
/
stdlib-011.c
blob: 061c9c798b97ffc82f6981560d932880a465d049 [
file
] [
log
] [
blame
]
/* strcat() which eventually overflows the destination buffer. */
#include
<string.h>
int
main
()
{
char
buf
[
100
];
strcpy
(
buf
,
"String"
);
while
(
1
)
strcat
(
buf
,
"String"
);
return
0
;
}