I have this function:
int execve(const char* filename, char* const argv[], char* const envp[]);
And I need set to NULL the envp parameter, so I need a pointer to NULL in the edx register before execute the function (better said, the syscall with int 0x80). The question is, can I do:
mov eax, 0
mov edx, eax ; edx points to NULL, no to some address that contains NULL
or need I do:
push 0
mov edx, esp ; edx points to some address that contains NULL