Whenever I try to copyout the last argv argument in execv to the user stack, I keep on hitting a ‘bad memory address’ error. I am pretty sure this is due to the NULL keyword. This happened even when casting NULL to a character pointer.
Am I right to assume this NULL is supposed to be the string-terminator version of NULL? The recitation slides are not very clear about this.