VirtualBox

Changeset 94111 in vbox


Ignore:
Timestamp:
Mar 7, 2022 12:56:04 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150360
Message:

libs/openssl-3.0.1: Secure memory allocation fix, bugref:10128

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/openssl-3.0.1/crypto/mem_sec.c

    r94100 r94111  
    166166void *CRYPTO_secure_zalloc(size_t num, const char *file, int line)
    167167{
     168#ifndef VBOX
    168169#ifndef OPENSSL_NO_SECURE_MEMORY
    169170    if (secure_mem_initialized)
     
    171172        return CRYPTO_secure_malloc(num, file, line);
    172173#endif
    173 #if defined(OPENSSL_NO_SECURE_MEMORY) && defined(VBOX)
     174    return CRYPTO_zalloc(num, file, line);
     175#else
    174176    RT_NOREF(line);
    175177    return RTMemSaferAllocZTag(num, file);
    176 #else
    177     return CRYPTO_zalloc(num, file, line);
    178178#endif
    179179}
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