aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_opt.c
diff options
context:
space:
mode:
authorrichardweinberger <richard@nod.at>2021-01-08 11:07:02 +0100
committerGitHub <noreply@github.com>2021-01-08 10:07:02 +0000
commit699ab32b5dbaf44d715aa08aa21d1ec62e479d2b (patch)
tree5a28550f768215a420908101d3227cd4424980dd /lib/fuse_opt.c
parentccba27fbec00d253102395cbdab048f0553c1938 (diff)
downloadlibfuse-699ab32b5dbaf44d715aa08aa21d1ec62e479d2b.tar.gz
fusermount: Check for argv[0] being present (#577)
It is perfectly legal to execute a program with argc == 0 and therefore no argv. fusermount needs to check for this case, otherwise it will pass a NULL poiunter to strdup() and cause undefined behavior. Especially since fusermount is setuid root, we need to extra be careful. Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'lib/fuse_opt.c')
0 files changed, 0 insertions, 0 deletions