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