]> 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)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Nov 2023 10:09:30 +0000 (11:09 +0100)
commit7058d793def09c3d4645e9efd1d8a5d212e839b0
treed502bfc40aced76cf4dc4d72b1a6a0baabd6927f
parentd065ff00a36b7244842f743372099837bc61328b
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