]> 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)
committerPali Rohár <pali.rohar@gmail.com>
Thu, 9 Nov 2017 18:03:34 +0000 (19:03 +0100)
commite526f503918cc29d8b1ccf36a5c3a34645d2be6e
treea8e6ed33bd77bcc6e05fa65d93c7c6a393b8de30
parent06ff935ec3ad2290025b555ff32b590680af565f
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]