VirtualBox

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


Ignore:
Timestamp:
Dec 31, 2020 10:12:45 AM (4 years ago)
Author:
vboxsync
Message:

iprt/lockvalidator: size calc fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/lockvalidator.cpp

    r83739 r87151  
    10441044     * it all.
    10451045     */
    1046     size_t const       cbFile   = pSrcPos->pszFile ? strlen(pSrcPos->pszFile) + 1 : 0;
    1047     size_t const     cbFunction = pSrcPos->pszFile ? strlen(pSrcPos->pszFunction) + 1 : 0;
    1048     RTLOCKVALCLASSINT *pThis    = (RTLOCKVALCLASSINT *)RTMemAllocVarTag(sizeof(*pThis) + cbFile + cbFunction + cbName,
    1049                                                                         "may-leak:RTLockValidatorClassCreateExV");
     1046    size_t const       cbFile     = pSrcPos->pszFile     ? strlen(pSrcPos->pszFile)    + 1 : 0;
     1047    size_t const       cbFunction = pSrcPos->pszFunction ? strlen(pSrcPos->pszFunction) + 1 : 0;
     1048    RTLOCKVALCLASSINT *pThis      = (RTLOCKVALCLASSINT *)RTMemAllocVarTag(sizeof(*pThis) + cbFile + cbFunction + cbName,
     1049                                                                          "may-leak:RTLockValidatorClassCreateExV");
    10501050    if (!pThis)
    10511051        return VERR_NO_MEMORY;
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