3 ms·
> a) I bet some insane userland processes fuck with their stacks What do you mean by "insane" here? In standard C you get char** argv, and the arguments live o
by leni536 4y ago
> a) I bet some insane userland processes fuck with their stacks
What do you mean by "insane" here? In standard C you get char** argv, and the arguments live on the stack. I believe you are allowed to modify those cli arguments through the pointers, it is not undefined behavior.
- staticassertion 4y agoI never called it undefined behavior. But you shouldn't modify that stack space directly, you should either use setenv via libc or you should use prctl.