Changeset 105945 in vbox for trunk/src/libs/openssl-3.1.7/crypto/o_str.c
- Timestamp:
- Sep 4, 2024 11:32:47 AM (8 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/o_str.c
r104078 r105945 1 1 /* 2 * Copyright 2003-202 2The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 2003-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 … … 230 230 size_t len = has_sep ? buflen * 3 : 1 + buflen * 2; 231 231 232 if (len == 0) 233 ++len; 232 234 if (strlength != NULL) 233 235 *strlength = len; … … 235 237 return 1; 236 238 237 if (str_n < (unsigned long)len) {239 if (str_n < len) { 238 240 ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_SMALL_BUFFER); 239 241 return 0; … … 247 249 *q++ = sep; 248 250 } 249 if (has_sep )251 if (has_sep && buflen > 0) 250 252 --q; 251 253 *q = CH_ZERO; 252 254 253 255 #ifdef CHARSET_EBCDIC 254 ebcdic2ascii(str, str, q - str - 1);256 ebcdic2ascii(str, str, q - str); 255 257 #endif 256 258 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.