Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
safecode
/
test
/
mem_safety
/
stdlib
/
stdlib-004.c
blob: a66ce6d7681da1047c5c07c193e6c8ce8f4c9ec0 [
file
] [
log
] [
blame
]
/* strcpy into buffer of insufficient size. */
#include
<string.h>
int
main
()
{
char
buf1
[
20
],
buf2
[
30
];
strcpy
(
buf2
,
"This is between 20 and 30"
);
strcpy
(
buf1
,
buf2
);
return
0
;
}