From c110d025c220c4aa584d65107f1a193bd5a024a8 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Fri, 19 Oct 2012 12:15:08 +0000 Subject: [PATCH] - Added extra check to prevent crash on failed memory allocation --- library/bignum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/bignum.c b/library/bignum.c index 0008748881..5d68520ff4 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -1087,7 +1087,7 @@ int mpi_div_mpi( mpi *Q, mpi *R, const mpi *A, const mpi *B ) n = X.n - 1; t = Y.n - 1; - mpi_shift_l( &Y, biL * (n - t) ); + MPI_CHK( mpi_shift_l( &Y, biL * (n - t) ) ); while( mpi_cmp_mpi( &X, &Y ) >= 0 ) {