- Timestamp:
- Jul 29, 2016 11:19:16 AM (8 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r62665 r62675 136 136 static bool g_fSupportsPageAllocNoKernel = true; 137 137 /** Fake mode indicator. (~0 at first, 0 or 1 after first test) */ 138 uint32_t g_uSupFakeMode = ~0;138 uint32_t g_uSupFakeMode = UINT32_MAX; 139 139 140 140 … … 549 549 ASMAtomicWriteNullPtr((void * volatile *)&g_pSUPGlobalInfoPage); 550 550 ASMAtomicWriteNullPtr((void * volatile *)&g_pSUPGlobalInfoPageR0); 551 ASMAtomicWrite Size(&g_HCPhysSUPGlobalInfoPage, NIL_RTHCPHYS);551 ASMAtomicWriteU64(&g_HCPhysSUPGlobalInfoPage, NIL_RTHCPHYS); 552 552 /* just a little safe guard against threads using the page. */ 553 553 RTThreadSleep(50); … … 1522 1522 AssertReturn(!phFile, VERR_NOT_IMPLEMENTED); /** @todo Implement this. The deal is that we make sure the 1523 1523 file is the same we verified after opening it. */ 1524 RT_NOREF2(pszFilename, pszMsg); 1524 1525 1525 1526 /* … … 1637 1638 return rc; 1638 1639 #else 1640 RT_NOREF1(pszFilename); 1639 1641 return VINF_SUCCESS; 1640 1642 #endif … … 2087 2089 DECLASM(void) suplibTracerFireProbe(PVTGPROBELOC pProbeLoc, PSUPTRACERUMODFIREPROBE pReq) 2088 2090 { 2091 RT_NOREF1(pProbeLoc); 2092 2089 2093 pReq->Hdr.u32Cookie = g_u32Cookie; 2090 2094 pReq->Hdr.u32SessionCookie = g_u32SessionCookie; -
trunk/src/VBox/HostDrivers/Support/SUPR3HardenedIPRT.cpp
r62490 r62675 101 101 va_copy(vaCopy, va); 102 102 AssertFatalMsgFailed(("%s (rc=%Rrc): %N", pszWhere, rc, pszMsgFmt, &vaCopy)); 103 va_end(vaCopy);104 103 NOREF(enmWhat); 104 /* not reached */ 105 105 } 106 106 … … 111 111 va_start(va, pszMsgFmt); 112 112 supR3HardenedFatalMsgV(pszWhere, enmWhat, rc, pszMsgFmt, va); 113 va_end(va);113 /* not reached */ 114 114 } 115 115 … … 120 120 va_copy(vaCopy, va); 121 121 AssertFatalMsgFailed(("%N", pszFormat, &vaCopy)); 122 va_end(vaCopy);122 /* not reached */ 123 123 } 124 124 … … 129 129 va_start(va, pszFormat); 130 130 supR3HardenedFatalV(pszFormat, va); 131 va_end(va);131 /* not reached */ 132 132 } 133 133 -
trunk/src/VBox/HostDrivers/Support/SUPR3HardenedVerify.cpp
r62490 r62675 620 620 621 621 # else /* Not checking signatures. */ 622 RT_NOREF4(pFile, pVerified, fFatal, fLeaveFileOpen); 622 623 return VINF_SUCCESS; 623 624 # endif /* Not checking signatures. */ … … 882 883 #ifndef RT_OS_DARWIN 883 884 size_t const cchProgNameDll = cchProgNameExe; 885 NOREF(fMainFlags); 884 886 #else 885 887 size_t const cchProgNameDll = fMainFlags & SUPSECMAIN_FLAGS_OSX_VM_APP … … 1247 1249 /** @todo Windows hardening. */ 1248 1250 pFsObjState->chTodo = 0; 1251 RT_NOREF2(pszPath, pErrInfo); 1249 1252 return VINF_SUCCESS; 1250 1253 … … 1289 1292 /** @todo Windows hardening. */ 1290 1293 pFsObjState->chTodo = 0; 1294 RT_NOREF3(hNative, pszPath, pErrInfo); 1291 1295 return VINF_SUCCESS; 1292 1296 … … 1325 1329 #if defined(RT_OS_WINDOWS) 1326 1330 /** @todo Windows hardening. */ 1331 RT_NOREF4(pFsObjState1, pFsObjState2, pszPath, pErrInfo); 1327 1332 return VINF_SUCCESS; 1328 1333 1329 1334 #elif defined(RT_OS_OS2) 1335 RT_NOREF4(pFsObjState1, pFsObjState2, pszPath, pErrInfo); 1330 1336 return VINF_SUCCESS; 1331 1337 … … 1510 1516 #if defined(RT_OS_WINDOWS) 1511 1517 /** @todo Windows hardening. */ 1518 RT_NOREF5(pszDirPath, cchDirPath, pFsObjState, fRecursive, pErrInfo); 1512 1519 return VINF_SUCCESS; 1513 1520 1514 1521 #elif defined(RT_OS_OS2) 1515 1522 /* No hardening here - it's a single user system. */ 1523 RT_NOREF5(pszDirPath, cchDirPath, pFsObjState, fRecursive, pErrInfo); 1516 1524 return VINF_SUCCESS; 1517 1525 … … 1734 1742 } 1735 1743 else 1744 { 1736 1745 rc = RTErrInfoSetF(pErrInfo, rc, "Error converting '%s' to UTF-16: %Rrc", pszFilename, rc); 1746 hVerify = INVALID_HANDLE_VALUE; 1747 } 1737 1748 } 1738 1749 else … … 1760 1771 rc = supHardenedWinVerifyImageByHandleNoName(hVerify, fFlags, pErrInfo); 1761 1772 # endif 1773 # else 1774 RT_NOREF1(fMaybe3rdParty); 1762 1775 # endif 1763 1776 NtClose(hVerify); … … 1768 1781 if (RT_FAILURE(rc)) 1769 1782 return rc; 1783 #else 1784 RT_NOREF1(fMaybe3rdParty); 1770 1785 #endif 1771 1786 -
trunk/src/VBox/HostDrivers/Support/win/SUPLib-win.cpp
r62490 r62675 260 260 pErrInfo->pszMsg[0] = '\0'; 261 261 } 262 #else 263 RT_NOREF1(penmWhat); 262 264 #endif 263 265 return rc; … … 457 459 CloseServiceHandle(hSMgr); 458 460 } 461 else 462 rc = RTErrConvertFromWin32(dwErr); 459 463 return rc; 460 464 } … … 570 574 SERVICE_STATUS Status; 571 575 BOOL fRc = QueryServiceStatus(hService, &Status); 572 Assert(fRc); 576 Assert(fRc); NOREF(fRc); 573 577 if (Status.dwCurrentState == SERVICE_RUNNING) 574 578 rc = VINF_ALREADY_INITIALIZED; … … 652 656 int suplibOsIOCtl(PSUPLIBDATA pThis, uintptr_t uFunction, void *pvReq, size_t cbReq) 653 657 { 658 RT_NOREF1(cbReq); 659 654 660 /* 655 661 * Issue the device I/O control.
Note:
See TracChangeset
for help on using the changeset viewer.