VirtualBox

忽略:
時間撮記:
2014-7-20 下午07:52:23 (10 年 以前)
作者:
vboxsync
訊息:

Console: secret keys require non pageable memory too

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette