]> git.ipfire.org Git - thirdparty/grub.git/commit
hfsplus: Check that the volume name length is valid
authorDarren Kenny <darren.kenny@oracle.com>
Fri, 23 Oct 2020 17:09:31 +0000 (17:09 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:16 +0000 (15:54 +0100)
commit2298f6e0d951251bb9ca97d891d1bc8b74515f8c
treede4ef956c65865fd380c3c48fc4ce436ce7c199c
parenta201ad17caa430aa710654fdf2e6ab4c8166f031
hfsplus: Check that the volume name length is valid

HFS+ documentation suggests that the maximum filename and volume name is
255 Unicode characters in length.

So, when converting from big-endian to little-endian, we should ensure
that the name of the volume has a length that is between 0 and 255,
inclusive.

Fixes: CID 73641
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/hfsplus.c