]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: vfat: Fix reading labels which starts with byte 0x05
authorPali Rohár <pali.rohar@gmail.com>
Thu, 9 Nov 2017 18:03:34 +0000 (19:03 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Dec 2017 14:29:59 +0000 (15:29 +0100)
commit8aa44f8dc7f8b4939fb40b790f3aff2b27861699
treec7d98018807011ffe17c887c4669d73e865fc85b
parent1e79f87eab4a3abf77ea0ed60b215faa1f39f948
libblkid: vfat: Fix reading labels which starts with byte 0x05

When FAT directory entry has leading byte 0x05 it is interpreted as byte
0xE5. This is how FAT stores file name which starts with byte 0xE5 as
leading byte in 0xE5 in FAT directory entry means that file slot is empty.

Fixes: #533
libblkid/src/superblocks/vfat.c
tests/expected/blkid/low-probe-fat32_cp850_O_tilde [new file with mode: 0644]
tests/ts/blkid/images-fs/fat32_cp850_O_tilde.img.xz [new file with mode: 0644]