Sign in
ara-mdk
/
platform
/
external
/
valgrind
/
f8a3d860be23fa1b89a60ad68ddef672a6683837
/
.
/
main
/
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
;
}