VirtualBox

Changeset 40263 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Feb 27, 2012 2:51:39 PM (13 years ago)
Author:
vboxsync
Message:

VbglR3: Fixed length on UTF-16 wipes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibCredentials.cpp

    r40211 r40263  
    199199    /* wipe first */
    200200    if (pwszUser)
    201         RTMemWipeThoroughly(pwszUser,     RTUtf16Len(pwszUser) + 1,     cPasses);
     201        RTMemWipeThoroughly(pwszUser,     RTUtf16Len(pwszUser) + sizeof(RTUTF16),     cPasses);
    202202    if (pwszPassword)
    203         RTMemWipeThoroughly(pwszPassword, RTUtf16Len(pwszPassword) + 1, cPasses);
     203        RTMemWipeThoroughly(pwszPassword, RTUtf16Len(pwszPassword) + sizeof(RTUTF16), cPasses);
    204204    if (pwszDomain)
    205         RTMemWipeThoroughly(pwszDomain,   RTUtf16Len(pwszDomain) + 1,   cPasses);
     205        RTMemWipeThoroughly(pwszDomain,   RTUtf16Len(pwszDomain) + sizeof(RTUTF16),   cPasses);
    206206
    207207    /* then free. */
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