Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
safecode
/
test
/
cstdlib
/
realpath-008.c
blob: 3ca8d4cafe25a8a2dd4fc03c13eae31d909b0a3e [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
#include
<stdlib.h>
//
// Off-by-one buffer overflow caused by realpath().
//
int
main
()
{
char
buf
[
1
];
realpath
(
"/"
,
buf
);
return
0
;
}