Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
safecode
/
test
/
mem_safety
/
stdlib
/
stdlib-014.c
blob: 12636fb84786e9f7568931fd52fb6a5e0a4f8122 [
file
] [
log
] [
blame
]
/* strcpy() with negative pointer index */
#include
<string.h>
int
main
()
{
char
buf
[
10
];
strcpy
(&
buf
[-
1
],
"String"
);
return
0
;
}