|
From: John R.
|
>> if (argc == 1)
>> {
>> if (execve(argv[0], NULL, NULL) < 0)
> I suspect it is checking that we handle a NULL argv pointer to execve
> correctly - presumably at some point we complained about it.
The possibility that 0==argc is forgotten often, both by application
writers and tool writers. One typical bug is an unguarded reference
to argv[0].
--
|