]> git.ipfire.org Git - thirdparty/grub.git/commit
fs/nilfs2: Reject too-large keys
authorDaniel Axtens <dja@axtens.net>
Mon, 18 Jan 2021 05:49:09 +0000 (16:49 +1100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:18 +0000 (15:54 +0100)
commit20ab8cb44bc140a1dedda82a3fccdd45e9bc6929
treea3bc34f5d9e0e63d586cd10a12da3b8cec448012
parent223120dd83745126cb232a0248c9a8901d7e350d
fs/nilfs2: Reject too-large keys

NILFS2 has up to 7 keys, per the data structure. Do not permit array
indices in excess of that.

This catches some OOB reads. I don't know how controllable the invalidly
read data is or if that could be used later in the program.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/nilfs2.c