* 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:
Vladimir Serbinenko 2013-11-08 16:33:48 +01:00
parent d6d8e9a93e
commit b9563c9451
3 changed files with 9 additions and 2 deletions

View file

@ -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)
{