]> git.ipfire.org Git - thirdparty/grub.git/commit
fs/iso9660: Add check to prevent infinite loop
authorLidong Chen <lidong.chen@oracle.com>
Fri, 20 Jan 2023 19:39:38 +0000 (19:39 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 2 Feb 2023 18:43:50 +0000 (19:43 +0100)
commit4e0bab34ece7b757a1b96be59ba54a009a5cc354
treed57966a12d8625823d624354e0dfb6b21b9ab19a
parentb073ce8d88f69d0d978b9c74ad8f0d3677e48053
fs/iso9660: Add check to prevent infinite loop

There is no check for the end of block when reading
directory extents. It resulted in read_node() always
read from the same offset in the while loop, thus
caused infinite loop. The fix added a check for the
end of the block and ensure the read is within directory
boundary.

Signed-off-by: Lidong Chen <lidong.chen@oracle.com>
Reviewed-by: Thomas Schmitt <scdbackup@gmx.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/iso9660.c