VirtualBox

Changeset 102567 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Dec 11, 2023 9:51:35 AM (14 months ago)
Author:
vboxsync
Message:

IPRT/shacrypt: Made asan build happy (false positive). bugref:10551

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/shacrypt.cpp

    r102564 r102567  
    161161    if (strncmp(pszSalt, RT_STR_TUPLE("rounds=")) == 0)
    162162    {
    163         const char * const pszValue  = &pszSalt[sizeof("rounds=") - 1];
     163        const char * const pszValue  = pszSalt ? &pszSalt[sizeof("rounds=") - 1] : NULL; /* For ASAN build (false positive). */
    164164        const char * const pszDollar = strchr(pszValue, '$');
    165165        if (pszDollar)
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