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