VirtualBox

Changeset 93392 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jan 21, 2022 11:07:13 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149488
Message:

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

File:
1 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
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