summaryrefslogtreecommitdiff
path: root/lib/crc32.c
diff options
context:
space:
mode:
authorGao Xiang <gaoxiang25@huawei.com>2019-08-18 18:28:24 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-20 19:15:32 -0700
commita64d9493f587f8ec101d92ec19c7d88d6d3b5567 (patch)
tree13bd07392036aac9e8253ff5c1905e30fb709518 /lib/crc32.c
parentc6d6832ce3980a25d2dcbb4ee6758fa9e0653500 (diff)
staging: erofs: refuse to mount images with malformed volume name
As Richard reminder [1], A valid volume name should be ended in NIL terminator within the length of volume_name. Since this field currently isn't really used, let's fix it to avoid potential bugs in the future. [1] https://lore.kernel.org/r/1133002215.69049.1566119033047.JavaMail.zimbra@nod.at/ Reported-by: Richard Weinberger <richard@nod.at> Signed-off-by: Gao Xiang <gaoxiang25@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Link: https://lore.kernel.org/r/20190818102824.22330-1-hsiangkao@aol.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/crc32.c')
0 files changed, 0 insertions, 0 deletions