vbox的更動 63285 路徑 trunk/src/VBox/NetworkServices
- 時間撮記:
- 2016-8-10 下午03:04:27 (8 年 以前)
- 位置:
- trunk/src/VBox/NetworkServices
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/NetworkServices/NAT/proxy_pollmgr.c
r63284 r63285 491 491 --pollmgr.nfds; 492 492 493 if ( (nfds_t)delfirst ==last) {493 if (delfirst == (SOCKET)last) { 494 494 /* congruent to delnext >= pollmgr.nfds test below */ 495 495 delfirst = INVALID_SOCKET; /* done */ -
trunk/src/VBox/NetworkServices/NetLib/VBoxNetPortForwardString.cpp
r63284 r63285 83 83 84 84 if (cchField != 0) 85 RTStrCopy(pszAddress, RT_MIN(cchField + 1, cbAddress), pszRaw);85 RTStrCopy(pszAddress, RT_MIN(cchField + 1, (size_t)cbAddress), pszRaw); 86 86 else if (!fEmptyAcceptable) 87 87 return -1; … … 246 246 int netPfStrToPf(const char *pcszStrPortForward, bool fIPv6, PPORTFORWARDRULE pPfr) 247 247 { 248 /** r=bird: Redo from scratch? This is very hard to read. */ 248 /** r=bird: Redo from scratch? This is very hard to read. And it's going about 249 * things in a very complicated, potentially leaky (pszRaw) fashion. */ 249 250 250 251 int proto; … … 286 287 cbToken = pszEndOfName - pszRaw; /* don't take : into account */ 287 288 /* XXX it's unacceptable to have only name entry in PF */ 288 AssertReturn(cbToken < cchRaw, VERR_INVALID_PARAMETER);289 AssertReturn(cbToken < (ssize_t)cchRaw, VERR_INVALID_PARAMETER); 289 290 290 291 if ( cbToken < 0
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器