VirtualBox

Changeset 93392 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 21, 2022 11:07:13 AM (3 years ago)
Author:
vboxsync
Message:

VMM/CFGM: Must thoroughly wipe password memory before freeing it. bugref:9469

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CFGM.cpp

    r93115 r93392  
    21152115                break;
    21162116
     2117            case CFGMVALUETYPE_PASSWORD:
     2118                RTMemWipeThoroughly(pLeaf->Value.String.psz, pLeaf->Value.String.cb, 10);
     2119                RT_FALL_THROUGH();
    21172120            case CFGMVALUETYPE_STRING:
    2118             case CFGMVALUETYPE_PASSWORD:
    21192121                cfgmR3StrFree(pVM, pLeaf->Value.String.psz);
    21202122                pLeaf->Value.String.psz = NULL;
     
    24142416            }
    24152417            else
     2418            {
     2419                RTMemWipeThoroughly(pszStringCopy, cchString, 10);
    24162420                cfgmR3StrFree(pNode->pVM, pszStringCopy);
     2421            }
    24172422        }
    24182423        else
  • trunk/src/VBox/VMM/include/CFGMInternal.h

    r93115 r93392  
    4444    } Integer;
    4545
    46     /** String value. (UTF-8 of course) */
     46    /** String or password value. (UTF-8 of course) */
    4747    struct CFGMVALUE_STRING
    4848    {
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