]> git.ipfire.org Git - thirdparty/grub.git/commit
fs/hfsplus: Prevent out of bound access in catalog file
authorLidong Chen <lidong.chen@oracle.com>
Wed, 3 May 2023 17:32:18 +0000 (17:32 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 17 May 2023 16:19:02 +0000 (18:19 +0200)
commiteb8b0aabb8ab8adab88d3610496e191097adba5a
tree964f81ad58f877876788df6b82eccc1d67ca2a27
parent3f6b129bdc9bdb9699cddc7b7f76c152f640d584
fs/hfsplus: Prevent out of bound access in catalog file

A corrupted hfsplus can have a catalog key that is out of range. This
can lead to out of bound access when advancing the pointer to access
catalog file info. The valid range of a catalog key is specified in
HFS Plus Technical Note TN1150 [1].

[1] https://developer.apple.com/library/archive/technotes/tn/tn1150.html

Signed-off-by: Lidong Chen <lidong.chen@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/hfsplus.c