]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (dos) Fix upper bound cylinder check in check_consistency()
authorPali Rohár <pali.rohar@gmail.com>
Tue, 6 Jul 2021 16:29:10 +0000 (18:29 +0200)
committerPali Rohár <pali.rohar@gmail.com>
Thu, 15 Jul 2021 19:49:30 +0000 (21:49 +0200)
commit639f6507b6e2b2e9a28a602675ea50c689a2659a
tree01b50d5a538281664ba88a7e747d6b04db83ddc3
parentc0a0e567d84b5fb6cffb58c72c5d40191f30d441
libfdisk: (dos) Fix upper bound cylinder check in check_consistency()

To determinate if CHS values are valid for consistency check and not
overflowed, it is needed to check current CHS cylinder value and not total
disk cylinder values. It is possible that also on "big" disk there is first
small partition which can be represented by CHS tuple.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
libfdisk/src/dos.c