Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
00888885d88a5264711c22074cfd3462020cbee6
/
.
/
memcheck
/
tests
/
execve1.c
blob: 83e058a2f33327054bbd85af3c6cccdefee7d2e4 [
file
] [
log
] [
blame
]
#include
<unistd.h>
int
main
(
void
)
{
char
*
null_filename
=
NULL
;
char
*
bad
[
2
]
=
{
(
char
*)
1
,
NULL
};
char
*
good
[
1
]
=
{
NULL
};
execve
(
null_filename
,
bad
,
bad
);
execve
(
"/bin/true"
,
good
,
good
);
return
0
;
}