* grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
Use grub_fatal rather than divide by zero. * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
This commit is contained in:
parent
d6d8e9a93e
commit
b9563c9451
3 changed files with 9 additions and 2 deletions
|
@ -77,7 +77,7 @@ gcry_mpi_powm (gcry_mpi_t res,
|
|||
ep = expo->d;
|
||||
|
||||
if (!msize)
|
||||
msize = 1 / msize; /* Provoke a signal. */
|
||||
grub_fatal ("mpi division by zero");
|
||||
|
||||
if (!esize)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue