VirtualBox

Ignore:
Timestamp:
Sep 4, 2024 11:32:47 AM (8 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/o_str.c

    r104078 r105945  
    11/*
    2  * Copyright 2003-2022 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2003-2024 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    44 * Licensed under the Apache License 2.0 (the "License").  You may not use
     
    230230    size_t len = has_sep ? buflen * 3 : 1 + buflen * 2;
    231231
     232    if (len == 0)
     233        ++len;
    232234    if (strlength != NULL)
    233235        *strlength = len;
     
    235237        return 1;
    236238
    237     if (str_n < (unsigned long)len) {
     239    if (str_n < len) {
    238240        ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_SMALL_BUFFER);
    239241        return 0;
     
    247249            *q++ = sep;
    248250    }
    249     if (has_sep)
     251    if (has_sep && buflen > 0)
    250252        --q;
    251253    *q = CH_ZERO;
    252254
    253255#ifdef CHARSET_EBCDIC
    254     ebcdic2ascii(str, str, q - str - 1);
     256    ebcdic2ascii(str, str, q - str);
    255257#endif
    256258    return 1;
Note: See TracChangeset for help on using the changeset viewer.

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