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