mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 08:09:22 +00:00
* grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
condition to avoid possibly infinite loops. * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise. * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
This commit is contained in:
1 parent
d46683f97a
commit
84f9d341b0
4 files changed
+12
-5
No files matched your search
+1
-1
@@ -143,7 +143,7 @@ grub_affs_read_block (grub_fshelp_node_t node, grub_disk_addr_t fileblock)
|
||||
mod = (grub_uint32_t) fileblock % data->htsize;
|
||||
/* Find the block that points to the fileblock we are looking up by
|
||||
following the chain until the right table is reached. */
|
||||
for (curblock = node->last_block_cache + 1; curblock <= target; curblock++)
|
||||
for (curblock = node->last_block_cache + 1; curblock < target + 1; curblock++)
|
||||
{
|
||||
grub_disk_read (data->disk,
|
||||
node->block_cache[curblock - 1] + data->blocksize - 1,
|
||||
|
||||
Reference in new issue
Block a user