]> 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)
committerSamanta Navarro <ferivoz@riseup.net>
Sun, 8 Nov 2020 11:47:33 +0000 (11:47 +0000)
commit8f22adaaf30e9fd3bf83da0213b4a6525c9305cd
tree5ac7e402c10f8e293798442c60a0401db849406f
parent02162731c1899613bce2aafc825acc7baa3cc99a
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