Searched hist:"9652 c732" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/9p/ |
H A D | vfs_inode.c | 9652c732 Sun Jan 31 13:40:40 CST 2021 Al Viro <viro@zeniv.linux.org.uk> 9p: fix misuse of sscanf() in v9fs_stat2inode()
1) sscanf() return value needs to be checked, damnit 2) sscanf() is perfectly capable of checking for fixed prefix, no need for that %13s + strncmp with constant string. 3) st->extension is a valid string; no need for voodoo with str*cpy() there.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
|