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