[openssl-commits] [openssl] OpenSSL_1_0_1-stable update

Rich Salz rsalz at openssl.org
Thu Feb 12 18:02:05 UTC 2015


The branch OpenSSL_1_0_1-stable has been updated
       via  bb14c2c9cac6050e231d6ea88a82232270101021 (commit)
      from  a1331af032ff038a8e2a111c54f7d0722a0f7a49 (commit)


- Log -----------------------------------------------------------------
commit bb14c2c9cac6050e231d6ea88a82232270101021
Author: Graeme Perrow <graeme.perrow at sap.com>
Date:   Thu Feb 12 13:00:42 2015 -0500

    RT3670: Check return from BUF_MEM_grow_clean
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (cherry picked from commit b0333e697c008d639c56f48e9148cb8cba957e32)

-----------------------------------------------------------------------

Summary of changes:
 crypto/conf/conf_def.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/crypto/conf/conf_def.c b/crypto/conf/conf_def.c
index e3ffeb2..faca9ae 100644
--- a/crypto/conf/conf_def.c
+++ b/crypto/conf/conf_def.c
@@ -585,7 +585,11 @@ static int str_copy(CONF *conf, char *section, char **pto, char *from)
                 CONFerr(CONF_F_STR_COPY, CONF_R_VARIABLE_HAS_NO_VALUE);
                 goto err;
             }
-            BUF_MEM_grow_clean(buf, (strlen(p) + buf->length - (e - from)));
+            if (!BUF_MEM_grow_clean(buf,
+                        (strlen(p) + buf->length - (e - from)))) {
+                CONFerr(CONF_F_STR_COPY, ERR_R_MALLOC_FAILURE);
+                goto err;
+            }
             while (*p)
                 buf->data[to++] = *(p++);
 


More information about the openssl-commits mailing list