Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
safecode
/
test
/
cstdlib
/
readlink-003.c
blob: 0dcecdf98591f5dc8269d6db456dccb3f70736ee [
file
] [
log
] [
blame
]
// RUN: test.sh -p -t %t %s
#include
<unistd.h>
// Ensure that a correct use of readlink() is not flagged as an error.
int
main
()
{
char
*
buffer
=
malloc
(
24
);
readlink
(
"/etc/passwd"
,
buffer
,
24
);
return
0
;
}