VirtualBox

Changeset 52019 in vbox


Ignore:
Timestamp:
Jul 14, 2014 8:01:03 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94991
Message:

Main/Console: Switch to RTMemSafer* for key backings

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r51925 r52019  
    5656
    5757#include <iprt/uuid.h>
    58 #include <iprt/mem.h>
     58#include <iprt/memsafer.h>
    5959#include <VBox/RemoteDesktop/VRDE.h>
    6060#include <VBox/vmm/pdmdrv.h>
     
    585585            ~SecretKey()
    586586            {
    587                 RTMemWipeThoroughly(m_pbKey, m_cbKey, 3 /* cPasses */);
    588                 RTMemLockedFree(m_pbKey);
     587                RTMemSaferFree(m_pbKey, m_cbKey);
    589588                m_cRefs = 0;
    590589                m_pbKey = NULL;
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r51997 r52019  
    9393#include <iprt/system.h>
    9494#include <iprt/base64.h>
     95#include <iprt/memsafer.h>
    9596
    9697#include <VBox/vmm/vmapi.h>
     
    46454646        if (cbKey != -1)
    46464647        {
    4647             uint8_t *pbKey = (uint8_t *)RTMemLockedAlloc(cbKey);
     4648            uint8_t *pbKey = (uint8_t *)RTMemSaferAllocZ(cbKey);
    46484649            if (pbKey)
    46494650            {
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