mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Check that hash len is not 0.
This commit is contained in:
1 parent
111ab3b9cc
commit
065ed900d4
2 files changed
+5
-1
No files matched your search
@@ -1,3 +1,7 @@
|
|||||||
|
2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Check that hash len is not 0.
|
||||||
|
|
||||||
2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
|
2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/osdep/linux/blocklist.c (grub_install_get_blocklist): Check
|
* grub-core/osdep/linux/blocklist.c (grub_install_get_blocklist): Check
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ grub_crypto_pbkdf2 (const struct gcry_md_spec *md,
|
|||||||
grub_uint8_t *tmp;
|
grub_uint8_t *tmp;
|
||||||
grub_size_t tmplen = Slen + 4;
|
grub_size_t tmplen = Slen + 4;
|
||||||
|
|
||||||
if (md->mdlen > GRUB_CRYPTO_MAX_MDLEN)
|
if (md->mdlen > GRUB_CRYPTO_MAX_MDLEN || md->mdlen == 0)
|
||||||
return GPG_ERR_INV_ARG;
|
return GPG_ERR_INV_ARG;
|
||||||
|
|
||||||
if (c == 0)
|
if (c == 0)
|
||||||
|
|||||||
Reference in new issue
Block a user