Sign in
llvm
/
llvm-archive
/
8f5549c70aebe1959d31d684f9f67236e1a7facb
/
.
/
safecode
/
test
/
cstdlib
/
strcpy-001.c
blob: 03f28cc6c16e651ca787ab8d7dd4405eb6f2977f [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
#include
<string.h>
// strcpy() with too short a destination.
int
main
()
{
char
dst
[
4
];
char
pad
[
100
];
char
src
[]
=
"12345"
;
strcpy
(&
dst
[
0
],
&
src
[
0
]);
return
0
;
}