Use grub_fatal rather than divide by zero.
* grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
+2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * 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.
+
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
ep = expo->d;
if (!msize)
- msize = 1 / msize; /* Provoke a signal. */
+ grub_fatal ("mpi division by zero");
if (!esize)
{
case 0:
/* We are asked to divide by zero, so go ahead and do it! (To make
the compiler not remove this statement, return the value.) */
- return 1 / dsize;
+ grub_fatal ("mpi division by zero");
+ return 0;
case 1:
{