VirtualBox

Changeset 52104 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Jul 20, 2014 7:52:23 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95120
Message:

Console: secret keys require non pageable memory too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r52082 r52104  
    46494649        if (cbKey != -1)
    46504650        {
    4651             uint8_t *pbKey = (uint8_t *)RTMemSaferAllocZ(cbKey);
    4652             if (pbKey)
     4651            uint8_t *pbKey = NULL;
     4652            rc = RTMemSaferAllocZEx(&pbKey, cbKey, RTMEMSAFER_F_REQUIRE_NOT_PAGABLE);
     4653            if (RT_SUCCESS(rc))
    46534654            {
    46544655                rc = RTBase64Decode(pszKeyEnc, pbKey, cbKey, NULL, NULL);
     
    46674668            else
    46684669                hrc = setError(E_FAIL,
    4669                                tr("Failed to allocate secure memory for the key"));
     4670                               tr("Failed to allocate secure memory for the key (%Rrc)"), rc);
    46704671        }
    46714672        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