]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: (hfs) check allocation size
authorKarel Zak <kzak@redhat.com>
Thu, 12 Apr 2018 12:21:47 +0000 (14:21 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2018 14:05:48 +0000 (16:05 +0200)
commit7ba4b32eac2673030c59a382e8aba7c0f36114c1
tree76c68bc0e99ac3e0cebb6b909c1aff5b57a44192
parentab359a6c3bc7fc25c1464ccc8f53f6f63053a9a1
libblkid: (hfs) check allocation size

The current prober is based on signature only (two bytes!). It seems
pretty fragile. Linux kernel also checks for allocation size in the
superblock, let's use it too... it's better than nothing.

Reported-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/hfs.c