* 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:
parent
d46683f97a
commit
84f9d341b0
4 changed files with 12 additions and 5 deletions
|
@ -70,13 +70,13 @@ grub_crypto_pbkdf2 (const struct gcry_md_spec *md,
|
|||
|
||||
grub_memcpy (tmp, S, Slen);
|
||||
|
||||
for (i = 1; i <= l; i++)
|
||||
for (i = 1; i - 1 < l; i++)
|
||||
{
|
||||
grub_memset (T, 0, hLen);
|
||||
|
||||
for (u = 1; u <= c; u++)
|
||||
for (u = 0; u < c; u++)
|
||||
{
|
||||
if (u == 1)
|
||||
if (u == 0)
|
||||
{
|
||||
tmp[Slen + 0] = (i & 0xff000000) >> 24;
|
||||
tmp[Slen + 1] = (i & 0x00ff0000) >> 16;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue