]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: allow a lot of mac partitions
authorSamanta Navarro <ferivoz@riseup.net>
Sun, 8 Nov 2020 11:45:18 +0000 (11:45 +0000)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 11:36:12 +0000 (12:36 +0100)
commitb134be670d469643c4908cba612bf405396c4dfe
treee23f292b606b6d78c0b10cd0132482e47cb9a06c
parent4f3de85b5e16be8b59cd451818585f97650829b3
libblkid: allow a lot of mac partitions

If the map count is set to INT_MAX then the for loop does not stop
because its check is never false.

I have not found a correct upper limit. The other partition logics have
a maximum amount (exception is atari.c).

The loop itself wouldn't be endless. If the iteration reaches block 0
then the signature will be wrong. This means that map count = INT_MAX
case would fail even if such a setup would be correct on disk.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
libblkid/src/partitions/mac.c