diff options
author | richardweinberger <richard@nod.at> | 2021-01-08 11:07:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 10:07:02 +0000 |
commit | 699ab32b5dbaf44d715aa08aa21d1ec62e479d2b (patch) | |
tree | 5a28550f768215a420908101d3227cd4424980dd /test/test_setattr.c | |
parent | ccba27fbec00d253102395cbdab048f0553c1938 (diff) | |
download | libfuse-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 'test/test_setattr.c')
0 files changed, 0 insertions, 0 deletions