VirtualBox

Ignore:
Timestamp:
Sep 4, 2024 11:32:47 AM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164679
Message:

openssl-3.1.7: Applied and adjusted our OpenSSL changes to 3.1.7. bugref:10757

Location:
trunk/src/libs/openssl-3.1.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/openssl-3.1.7

    • Property svn:mergeinfo
      •  

        old new  
        2525/vendor/openssl/3.0.3:151497-151729
        2626/vendor/openssl/3.0.7:154371
         27/vendor/openssl/3.1.7:164675-164677
  • trunk/src/libs/openssl-3.1.7/crypto/asn1/a_mbstr.c

    r104078 r105945  
    11/*
    2  * Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 1999-2024 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    44 * Licensed under the Apache License 2.0 (the "License").  You may not use
     
    140140        free_out = 0;
    141141        dest = *out;
    142         OPENSSL_free(dest->data);
    143         dest->data = NULL;
    144         dest->length = 0;
     142        ASN1_STRING_set0(dest, NULL, 0);
    145143        dest->type = str_type;
    146144    } else {
     
    156154    if (inform == outform) {
    157155        if (!ASN1_STRING_set(dest, in, len)) {
     156            if (free_out) {
     157                ASN1_STRING_free(dest);
     158                *out = NULL;
     159            }
    158160            ERR_raise(ERR_LIB_ASN1, ERR_R_MALLOC_FAILURE);
    159161            return -1;
     
    186188    }
    187189    if ((p = OPENSSL_malloc(outlen + 1)) == NULL) {
    188         if (free_out)
     190        if (free_out) {
    189191            ASN1_STRING_free(dest);
     192            *out = NULL;
     193        }
    190194        ERR_raise(ERR_LIB_ASN1, ERR_R_MALLOC_FAILURE);
    191195        return -1;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette