Changeset 105945 in vbox for trunk/src/libs/openssl-3.1.7/crypto/asn1/a_mbstr.c
- Timestamp:
- Sep 4, 2024 11:32:47 AM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 164679
- 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 25 25 /vendor/openssl/3.0.3:151497-151729 26 26 /vendor/openssl/3.0.7:154371 27 /vendor/openssl/3.1.7:164675-164677
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.1.7/crypto/asn1/a_mbstr.c
r104078 r105945 1 1 /* 2 * Copyright 1999-202 1The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 1999-2024 The OpenSSL Project Authors. All Rights Reserved. 3 3 * 4 4 * Licensed under the Apache License 2.0 (the "License"). You may not use … … 140 140 free_out = 0; 141 141 dest = *out; 142 OPENSSL_free(dest->data); 143 dest->data = NULL; 144 dest->length = 0; 142 ASN1_STRING_set0(dest, NULL, 0); 145 143 dest->type = str_type; 146 144 } else { … … 156 154 if (inform == outform) { 157 155 if (!ASN1_STRING_set(dest, in, len)) { 156 if (free_out) { 157 ASN1_STRING_free(dest); 158 *out = NULL; 159 } 158 160 ERR_raise(ERR_LIB_ASN1, ERR_R_MALLOC_FAILURE); 159 161 return -1; … … 186 188 } 187 189 if ((p = OPENSSL_malloc(outlen + 1)) == NULL) { 188 if (free_out) 190 if (free_out) { 189 191 ASN1_STRING_free(dest); 192 *out = NULL; 193 } 190 194 ERR_raise(ERR_LIB_ASN1, ERR_R_MALLOC_FAILURE); 191 195 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.