7 ms·
It's not clear from that quote if they're talking about code calling execve(,NULL,) or a program expecting main() to be entered with argv[0]==NULL. (edit: foun
by tremon 5y ago
It's not clear from that quote if they're talking about code calling execve(,NULL,) or a program expecting main() to be entered with argv[0]==NULL.
(edit: found an answer here: https://lwn.net/ml/linux-kernel/5e963fab-88d4-2039-1cf4-6661e9bd16b@dereferenced.org/ https://lwn.net/ml/linux-kernel/5e963fab-88d4-2039-1cf4-6661...)
multicall programs will try to use argv[0] and might
crash in this scenario. If we're going to fake an argv, I guess we should try to do it right.
- formerly_proven 5y ago(multicall = things like busybox which look at argv[0] to determine what program they should act like)