]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: exfat: fix fail to find volume label
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Wed, 11 Oct 2023 10:42:11 +0000 (18:42 +0800)
committerYuezhang Mo <Yuezhang.Mo@sony.com>
Wed, 11 Oct 2023 11:02:14 +0000 (19:02 +0800)
commit07b2450d1eda5ecaaeaac1940b606542f5a738d4
tree3d3e6f2a1a8f1c2d3b250a05f2e68f2af8d7bad7
parentf3fd64111c28de1ecd47f7cd519120ffa531800d
libblkid: exfat: fix fail to find volume label

Commit f98b56326 set the maximum number of iterations to 10000.
If the volume label is after the 10000th entry, the volume label
will not be found. So this commit sets the maximum number of
iterations to correct value 256×1024×1024/32.

Fixes: f98b56326 ("libblkid: [exfat] Limit maximum number of iterations in find_label")
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Andy Wu <Andy.Wu@sony.com>
Reviewed-by: Aoyama Wataru <wataru.aoyama@sony.com>
libblkid/src/superblocks/exfat.c