File openssl-CVE-2018-0734.patch of Package openssl-1_0_0.9548

commit 43e6a58d4991a451daf4891ff05a48735df871ac
Author: Pauli <paul.dale@oracle.com>
Date:   Mon Oct 29 08:24:22 2018 +1000

    Merge DSA reallocation timing fix CVE-2018-0734.
    
    Reviewed-by: Richard Levitte <levitte@openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/7513)

Index: openssl-1.0.2p/crypto/dsa/dsa_ossl.c
===================================================================
--- openssl-1.0.2p.orig/crypto/dsa/dsa_ossl.c	2018-11-23 16:04:32.710572048 +0100
+++ openssl-1.0.2p/crypto/dsa/dsa_ossl.c	2018-11-23 16:04:44.022636625 +0100
@@ -295,7 +295,7 @@ static int dsa_sign_setup(DSA *dsa, BN_C
         goto err;
 
     /* Preallocate space */
-    q_bits = BN_num_bits(dsa->q);
+    q_bits = BN_num_bits(dsa->q) + sizeof(dsa->q->d[0]) * 16;
     if (!BN_set_bit(&k, q_bits)
         || !BN_set_bit(&l, q_bits)
         || !BN_set_bit(&m, q_bits))