mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
from the compiler. Patch from Bart Van Assche <bart.vanassche@gmail.com>. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7317
14 lines
236 B
C
14 lines
236 B
C
#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;
|
|
}
|