- Timestamp:
- Aug 5, 2018 1:58:10 PM (6 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/tstCAPIGlue.c
r69500 r73505 103 103 * @param iInfo Platform dependent detail info (ignored). 104 104 */ 105 #ifdef WIN32 105 106 static BOOL VBOX_WINAPI ctrlCHandler(DWORD iInfo) 106 107 { … … 109 110 return TRUE; 110 111 } 112 #else 113 static void ctrlCHandler(int iInfo) 114 { 115 (void)iInfo; 116 g_fStop = 1; 117 } 118 #endif 111 119 112 120 /** … … 605 613 SetConsoleCtrlHandler(ctrlCHandler, TRUE); 606 614 #else 607 signal(SIGINT, (void (*)(int))ctrlCHandler);615 signal(SIGINT, ctrlCHandler); 608 616 #endif 609 617 -
trunk/src/VBox/Main/glue/errorprint.cpp
r72947 r73505 81 81 Log(("ERROR: %s", str.c_str())); 82 82 } 83 catch (std::bad_alloc )83 catch (std::bad_alloc &) 84 84 { 85 85 RTMsgError("std::bad_alloc in GluePrintErrorInfo!"); -
trunk/src/VBox/Main/src-all/ExtPackUtil.cpp
r68828 r73505 272 272 Parser.read(szFilePath, Doc); 273 273 } 274 catch (xml::XmlError Err)275 { 276 return new RTCString( Err.what());274 catch (xml::XmlError &rErr) 275 { 276 return new RTCString(rErr.what()); 277 277 } 278 278 } … … 345 345 Parser.read(pvFile, cbFile, strFileName, Doc); 346 346 } 347 catch (xml::XmlError Err)348 { 349 pstrErr = new RTCString( Err.what());347 catch (xml::XmlError &rErr) 348 { 349 pstrErr = new RTCString(rErr.what()); 350 350 rc = VERR_PARSE_ERROR; 351 351 } … … 862 862 *pStrDigest = szCalculatedDigest; 863 863 } 864 catch (std::bad_alloc )864 catch (std::bad_alloc &) 865 865 { 866 866 rc = VERR_NO_MEMORY; -
trunk/src/VBox/Main/src-all/SecretKeyStore.cpp
r72939 r73505 147 147 return rc; 148 148 } 149 catch (std::bad_alloc )149 catch (std::bad_alloc &) 150 150 { 151 151 if (pKey) -
trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp
r73370 r73505 3194 3194 result = AuthResultAccessGranted; 3195 3195 } 3196 catch (std::bad_alloc )3196 catch (std::bad_alloc &) 3197 3197 { 3198 3198 } … … 3265 3265 LogFlowFunc(("%Rhrc [%ls]\n", hr, authResult.raw())); NOREF(hr); 3266 3266 } 3267 catch (std::bad_alloc )3267 catch (std::bad_alloc &) 3268 3268 { 3269 3269 } -
trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp
r73408 r73505 392 392 } 393 393 } 394 catch (std::bad_alloc )394 catch (std::bad_alloc &) 395 395 { 396 396 #ifdef VBOX_AUDIO_DEBUG_DUMP_PCM_DATA -
trunk/src/VBox/Main/src-client/GuestCtrlPrivate.cpp
r71873 r73505 768 768 } 769 769 } 770 catch (std::bad_alloc )770 catch (std::bad_alloc &) 771 771 { 772 772 vrc = VERR_NO_MEMORY; -
trunk/src/VBox/Main/src-client/GuestFileImpl.cpp
r73003 r73505 368 368 vrc = registerWaitEvent(eventTypes, &pEvent); 369 369 } 370 catch (std::bad_alloc )370 catch (std::bad_alloc &) 371 371 { 372 372 vrc = VERR_NO_MEMORY; … … 698 698 vrc = registerWaitEvent(eventTypes, &pEvent); 699 699 } 700 catch (std::bad_alloc )700 catch (std::bad_alloc &) 701 701 { 702 702 vrc = VERR_NO_MEMORY; … … 759 759 vrc = registerWaitEvent(eventTypes, &pEvent); 760 760 } 761 catch (std::bad_alloc )761 catch (std::bad_alloc &) 762 762 { 763 763 vrc = VERR_NO_MEMORY; … … 818 818 vrc = registerWaitEvent(eventTypes, &pEvent); 819 819 } 820 catch (std::bad_alloc )820 catch (std::bad_alloc &) 821 821 { 822 822 vrc = VERR_NO_MEMORY; … … 879 879 vrc = registerWaitEvent(eventTypes, &pEvent); 880 880 } 881 catch (std::bad_alloc )881 catch (std::bad_alloc &) 882 882 { 883 883 vrc = VERR_NO_MEMORY; … … 1144 1144 vrc = registerWaitEvent(eventTypes, &pEvent); 1145 1145 } 1146 catch (std::bad_alloc )1146 catch (std::bad_alloc &) 1147 1147 { 1148 1148 vrc = VERR_NO_MEMORY; … … 1207 1207 vrc = registerWaitEvent(eventTypes, &pEvent); 1208 1208 } 1209 catch (std::bad_alloc )1209 catch (std::bad_alloc &) 1210 1210 { 1211 1211 vrc = VERR_NO_MEMORY; -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r73036 r73505 897 897 vrc = registerWaitEvent(eventTypes, &pEvent); 898 898 } 899 catch (std::bad_alloc )899 catch (std::bad_alloc &) 900 900 { 901 901 vrc = VERR_NO_MEMORY; … … 1024 1024 vrc = registerWaitEvent(eventTypes, &pEvent); 1025 1025 } 1026 catch (std::bad_alloc )1026 catch (std::bad_alloc &) 1027 1027 { 1028 1028 vrc = VERR_NO_MEMORY; … … 1236 1236 vrc = registerWaitEvent(eventTypes, &pEvent); 1237 1237 } 1238 catch (std::bad_alloc )1238 catch (std::bad_alloc &) 1239 1239 { 1240 1240 vrc = VERR_NO_MEMORY; … … 1425 1425 vrc = registerWaitEvent(eventTypes, &pEvent); 1426 1426 } 1427 catch (std::bad_alloc )1427 catch (std::bad_alloc &) 1428 1428 { 1429 1429 vrc = VERR_NO_MEMORY; … … 1714 1714 vrc = registerWaitEvent(eventTypes, &pEvent); 1715 1715 } 1716 catch (std::bad_alloc )1716 catch (std::bad_alloc &) 1717 1717 { 1718 1718 vrc = VERR_NO_MEMORY; … … 2224 2224 paStrmOutObjects->push_back(strmBlk); 2225 2225 } 2226 catch (std::bad_alloc )2226 catch (std::bad_alloc &) 2227 2227 { 2228 2228 vrc = VERR_NO_MEMORY; -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r73037 r73505 700 700 vrc = registerWaitEventEx(mData.mSession.mID, mData.mObjectID, eventTypes, &pEvent); 701 701 } 702 catch (std::bad_alloc )702 catch (std::bad_alloc &) 703 703 { 704 704 vrc = VERR_NO_MEMORY; … … 961 961 procInfo.mArguments.push_back(strPath); /* The directory we want to create. */ 962 962 } 963 catch (std::bad_alloc )963 catch (std::bad_alloc &) 964 964 { 965 965 vrc = VERR_NO_MEMORY; … … 1113 1113 procInfo.mArguments.push_back(strTemplate); 1114 1114 } 1115 catch (std::bad_alloc )1115 catch (std::bad_alloc &) 1116 1116 { 1117 1117 Log(("Out of memory!\n")); … … 1466 1466 procInfo.mArguments.push_back(strPath); /* The file we want to remove. */ 1467 1467 } 1468 catch (std::bad_alloc )1468 catch (std::bad_alloc &) 1469 1469 { 1470 1470 vrc = VERR_NO_MEMORY; … … 1629 1629 procInfo.mArguments.push_back(strPath); 1630 1630 } 1631 catch (std::bad_alloc )1631 catch (std::bad_alloc &) 1632 1632 { 1633 1633 Log(("Out of memory!\n")); … … 1923 1923 vrc = registerWaitEventEx(mData.mSession.mID, mData.mObjectID, eventTypes, &pEvent); 1924 1924 } 1925 catch (std::bad_alloc )1925 catch (std::bad_alloc &) 1926 1926 { 1927 1927 vrc = VERR_NO_MEMORY; … … 2698 2698 vrc = registerWaitEventEx(mData.mSession.mID, mData.mObjectID, eventTypes, &pEvent); 2699 2699 } 2700 catch (std::bad_alloc )2700 catch (std::bad_alloc &) 2701 2701 { 2702 2702 vrc = VERR_NO_MEMORY; -
trunk/src/VBox/Main/src-client/MachineDebuggerImpl.cpp
r73003 r73505 664 664 aOSName = Utf8Str(bstrName); 665 665 } 666 catch (std::bad_alloc )666 catch (std::bad_alloc &) 667 667 { 668 668 hrc = E_OUTOFMEMORY; … … 695 695 aOSVersion = Utf8Str(bstrVersion); 696 696 } 697 catch (std::bad_alloc )697 catch (std::bad_alloc &) 698 698 { 699 699 hrc = E_OUTOFMEMORY; … … 1002 1002 aInfo = bstrInfo; 1003 1003 } 1004 catch (std::bad_alloc )1004 catch (std::bad_alloc &) 1005 1005 { 1006 1006 hrc = E_OUTOFMEMORY; … … 1132 1132 hrc = S_OK; 1133 1133 } 1134 catch (std::bad_alloc )1134 catch (std::bad_alloc &) 1135 1135 { 1136 1136 hrc = E_OUTOFMEMORY; … … 1149 1149 hrc = S_OK; 1150 1150 } 1151 catch (std::bad_alloc )1151 catch (std::bad_alloc &) 1152 1152 { 1153 1153 hrc = E_OUTOFMEMORY; … … 1218 1218 aOs = szName; 1219 1219 } 1220 catch (std::bad_alloc )1220 catch (std::bad_alloc &) 1221 1221 { 1222 1222 hrc = E_OUTOFMEMORY; … … 1322 1322 aValue = Utf8Str(bstrValue); 1323 1323 } 1324 catch (std::bad_alloc )1324 catch (std::bad_alloc &) 1325 1325 { 1326 1326 hrc = E_OUTOFMEMORY; … … 1381 1381 } 1382 1382 } 1383 catch (std::bad_alloc )1383 catch (std::bad_alloc &) 1384 1384 { 1385 1385 hrc = E_OUTOFMEMORY; … … 1530 1530 } 1531 1531 } 1532 catch (std::bad_alloc )1532 catch (std::bad_alloc &) 1533 1533 { 1534 1534 hrc = E_OUTOFMEMORY; -
trunk/src/VBox/Main/src-client/VideoRec.cpp
r72014 r73505 710 710 pStream->File.pWEBM = new WebMWriter(); 711 711 } 712 catch (std::bad_alloc )712 catch (std::bad_alloc &) 713 713 { 714 714 rc = VERR_NO_MEMORY; … … 895 895 pStream = pCtx->vecStreams.at(uScreen); 896 896 } 897 catch (std::out_of_range )897 catch (std::out_of_range &) 898 898 { 899 899 pStream = NULL; -
trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp
r73089 r73505 2018 2018 hrc = setErrorVrc(vrc, tr("Failed to open directory '%s' (%Rrc)"), strTargetDir.c_str(), vrc); 2019 2019 } 2020 catch (std::bad_alloc )2020 catch (std::bad_alloc &) 2021 2021 { 2022 2022 hrc = E_OUTOFMEMORY; … … 2241 2241 strTarballPath.setNull(); 2242 2242 } 2243 catch (std::bad_alloc )2243 catch (std::bad_alloc &) 2244 2244 { hrc = E_OUTOFMEMORY; } 2245 2245 } -
trunk/src/VBox/Main/src-server/CloudClientImpl.cpp
r73337 r73505 148 148 LogRel(("Get cought an exception %d\n", hrc)); 149 149 } 150 catch (std::bad_alloc )150 catch (std::bad_alloc &) 151 151 { 152 152 return E_OUTOFMEMORY; … … 303 303 LogRel(("Get cought an exception %d\n", hrc)); 304 304 } 305 catch (std::bad_alloc )305 catch (std::bad_alloc &) 306 306 { 307 307 return E_OUTOFMEMORY; -
trunk/src/VBox/Main/src-server/MediumIOImpl.cpp
r72999 r73505 245 245 a_rData.resize(a_cbRead); 246 246 } 247 catch (std::bad_alloc )247 catch (std::bad_alloc &) 248 248 { 249 249 return E_OUTOFMEMORY; -
trunk/src/VBox/Main/src-server/UnattendedImpl.cpp
r72980 r73505 224 224 ComAssertComRCRet(hrc, hrc); 225 225 } 226 catch (std::bad_alloc )226 catch (std::bad_alloc &) 227 227 { 228 228 return E_OUTOFMEMORY; … … 337 337 mDetectedOSLanguages.append(szTmp); 338 338 } 339 catch (std::bad_alloc )339 catch (std::bad_alloc &) 340 340 { 341 341 return E_OUTOFMEMORY; … … 357 357 { 358 358 try { mStrDetectedOSTypeId = Global::OSTypeId(enmOsType); } 359 catch (std::bad_alloc ) { hrc = E_OUTOFMEMORY; }359 catch (std::bad_alloc &) { hrc = E_OUTOFMEMORY; } 360 360 } 361 361 return hrc; … … 466 466 mDetectedOSLanguages.append(pszKey); 467 467 } 468 catch (std::bad_alloc )468 catch (std::bad_alloc &) 469 469 { 470 470 RTIniFileRelease(hIniFile); … … 653 653 LogRelFlow(("Unattended: .treeinfo: version=%s\n", pBuf->sz)); 654 654 try { mStrDetectedOSVersion = RTStrStrip(pBuf->sz); } 655 catch (std::bad_alloc ) { return E_OUTOFMEMORY; }655 catch (std::bad_alloc &) { return E_OUTOFMEMORY; } 656 656 } 657 657 … … 711 711 LogRelFlow(("Unattended: .discinfo: version=%s\n", pszVersion)); 712 712 try { mStrDetectedOSVersion = RTStrStripL(pszVersion); } 713 catch (std::bad_alloc ) { return E_OUTOFMEMORY; }713 catch (std::bad_alloc &) { return E_OUTOFMEMORY; } 714 714 715 715 /* CentOS likes to call their release 'Final' without mentioning the actual version … … 778 778 /* Set it and stop looking. */ 779 779 try { mStrDetectedOSVersion = psz; } 780 catch (std::bad_alloc ) { return E_OUTOFMEMORY; }780 catch (std::bad_alloc &) { return E_OUTOFMEMORY; } 781 781 break; 782 782 } … … 833 833 return setErrorBoth(E_FAIL, vrc); 834 834 } 835 catch (std::bad_alloc )835 catch (std::bad_alloc &) 836 836 { 837 837 return E_OUTOFMEMORY; … … 966 966 } 967 967 } 968 catch (std::bad_alloc )968 catch (std::bad_alloc &) 969 969 { 970 970 return E_OUTOFMEMORY; … … 1065 1065 hrc = ptrSession.createInprocObject(CLSID_Session); 1066 1066 } 1067 catch (std::bad_alloc )1067 catch (std::bad_alloc &) 1068 1068 { 1069 1069 hrc = E_OUTOFMEMORY; -
trunk/src/VBox/Main/src-server/UnattendedInstaller.cpp
r71018 r73505 466 466 vecArgs.append() = "--dir-mode=0555"; 467 467 } 468 catch (std::bad_alloc )468 catch (std::bad_alloc &) 469 469 { 470 470 hrc = E_OUTOFMEMORY; … … 543 543 pszDstFilename = strDstNameBuf.c_str(); 544 544 } 545 catch (std::bad_alloc )545 catch (std::bad_alloc &) 546 546 { 547 547 return E_OUTOFMEMORY; … … 680 680 } 681 681 } 682 catch (std::bad_alloc )682 catch (std::bad_alloc &) 683 683 { 684 684 hrc = E_OUTOFMEMORY; … … 700 700 strScriptName.append(pEditor->getDefaultFilename()); 701 701 } 702 catch (std::bad_alloc )702 catch (std::bad_alloc &) 703 703 { 704 704 return E_OUTOFMEMORY; … … 719 719 rVecFiles.append(strScriptName); 720 720 } 721 catch (std::bad_alloc )721 catch (std::bad_alloc &) 722 722 { 723 723 RTFileDelete(strScriptName.c_str()); … … 896 896 } 897 897 } 898 catch (std::bad_alloc )898 catch (std::bad_alloc &) 899 899 { 900 900 return E_OUTOFMEMORY; … … 946 946 rVecArgs.append().append("isolinux/txt.cfg=").append(strTxtCfg); 947 947 } 948 catch (std::bad_alloc )948 catch (std::bad_alloc &) 949 949 { 950 950 return E_OUTOFMEMORY; … … 968 968 rVecFiles.append(strIsoLinuxCfg); 969 969 } 970 catch (std::bad_alloc )970 catch (std::bad_alloc &) 971 971 { 972 972 RTFileDelete(strIsoLinuxCfg.c_str()); … … 996 996 rVecFiles.append(strTxtCfg); 997 997 } 998 catch (std::bad_alloc )998 catch (std::bad_alloc &) 999 999 { 1000 1000 RTFileDelete(strTxtCfg.c_str()); … … 1043 1043 } 1044 1044 } 1045 catch (std::bad_alloc )1045 catch (std::bad_alloc &) 1046 1046 { 1047 1047 return E_OUTOFMEMORY; … … 1112 1112 #endif 1113 1113 } 1114 catch (std::bad_alloc )1114 catch (std::bad_alloc &) 1115 1115 { 1116 1116 return E_OUTOFMEMORY; … … 1134 1134 rVecFiles.append(strIsoLinuxCfg); 1135 1135 } 1136 catch (std::bad_alloc )1136 catch (std::bad_alloc &) 1137 1137 { 1138 1138 RTFileDelete(strIsoLinuxCfg.c_str()); -
trunk/src/VBox/Main/src-server/UnattendedScript.cpp
r69238 r73505 139 139 strWithDefaultFilename.append(getDefaultFilename()); 140 140 } 141 catch (std::bad_alloc )141 catch (std::bad_alloc &) 142 142 { 143 143 return E_OUTOFMEMORY; … … 153 153 mStrSavedPath = pszFilename; 154 154 } 155 catch (std::bad_alloc )155 catch (std::bad_alloc &) 156 156 { 157 157 return E_OUTOFMEMORY; … … 245 245 rStrDst.append(mStrScriptFullContent, offTemplate, cchToCopy); 246 246 } 247 catch (std::bad_alloc )247 catch (std::bad_alloc &) 248 248 { 249 249 hrc = E_OUTOFMEMORY; … … 311 311 rStrDst.append(strValue); 312 312 } 313 catch (std::bad_alloc )313 catch (std::bad_alloc &) 314 314 { 315 315 hrc = E_OUTOFMEMORY; … … 465 465 return S_OK; 466 466 } 467 catch (std::bad_alloc )467 catch (std::bad_alloc &) 468 468 { 469 469 hrc = E_OUTOFMEMORY; … … 499 499 } 500 500 } 501 catch (std::bad_alloc )501 catch (std::bad_alloc &) 502 502 { 503 503 hrc = E_OUTOFMEMORY; … … 656 656 mScriptContentByLines = mStrScriptFullContent.split("\n"); 657 657 } 658 catch (std::bad_alloc )658 catch (std::bad_alloc &) 659 659 { 660 660 mScriptContentByLines.clear(); … … 697 697 rStrDst.append('\n'); 698 698 } 699 catch (std::bad_alloc )699 catch (std::bad_alloc &) 700 700 { 701 701 return E_OUTOFMEMORY; … … 723 723 mScriptContentByLines[idxLine] = rStrNewLine; 724 724 } 725 catch (std::bad_alloc )725 catch (std::bad_alloc &) 726 726 { 727 727 return E_OUTOFMEMORY; … … 762 762 rDstString.append(strAfter); 763 763 } 764 catch (std::bad_alloc )764 catch (std::bad_alloc &) 765 765 { 766 766 return E_OUTOFMEMORY; … … 780 780 mScriptContentByLines[idxLine].append(rStrToAppend); 781 781 } 782 catch (std::bad_alloc )782 catch (std::bad_alloc &) 783 783 { 784 784 return E_OUTOFMEMORY; … … 802 802 rDstString.append(strCopy); 803 803 } 804 catch (std::bad_alloc )804 catch (std::bad_alloc &) 805 805 { 806 806 return E_OUTOFMEMORY; … … 838 838 hrc = S_OK; 839 839 } 840 catch (std::bad_alloc )840 catch (std::bad_alloc &) 841 841 { 842 842 hrc = E_OUTOFMEMORY; … … 864 864 strProbableValue = createProbableValue(enmDataId, pElement); 865 865 } 866 catch (std::bad_alloc )866 catch (std::bad_alloc &) 867 867 { 868 868 return E_OUTOFMEMORY; -
trunk/src/VBox/Main/webservice/Makefile.kmk
r71822 r73505 228 228 vboxsoap_CXXFLAGS.win += -wd4702 # soapc-4.cpp(16) : warning C4702: unreachable code 229 229 ifn1of ($(KBUILD_TARGET), win) 230 vboxsoap_CXXFLAGS += -Wno-shadow -Wno-parentheses $(VBOX_GCC_Wno-literal-suffix) 230 vboxsoap_CXXFLAGS += -Wno-shadow -Wno-parentheses $(VBOX_GCC_Wno-literal-suffix) $(VBOX_GCC_Wno-stringop-overflow) $(VBOX_GCC_Wno-stringop-truncation) 231 231 endif 232 232 vboxsoap_INCS := \
Note:
See TracChangeset
for help on using the changeset viewer.