VirtualBox

vbox的更動 63285 路徑 trunk/src/VBox/NetworkServices


忽略:
時間撮記:
2016-8-10 下午03:04:27 (8 年 以前)
作者:
vboxsync
訊息:

NetworkServices: warnings

位置:
trunk/src/VBox/NetworkServices
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/NetworkServices/NAT/proxy_pollmgr.c

    r63284 r63285  
    491491                --pollmgr.nfds;
    492492
    493                 if ((nfds_t)delfirst == last) {
     493                if (delfirst == (SOCKET)last) {
    494494                    /* congruent to delnext >= pollmgr.nfds test below */
    495495                    delfirst = INVALID_SOCKET; /* done */
  • trunk/src/VBox/NetworkServices/NetLib/VBoxNetPortForwardString.cpp

    r63284 r63285  
    8383
    8484        if (cchField != 0)
    85             RTStrCopy(pszAddress, RT_MIN(cchField + 1, cbAddress), pszRaw);
     85            RTStrCopy(pszAddress, RT_MIN(cchField + 1, (size_t)cbAddress), pszRaw);
    8686        else if (!fEmptyAcceptable)
    8787            return -1;
     
    246246int netPfStrToPf(const char *pcszStrPortForward, bool fIPv6, PPORTFORWARDRULE pPfr)
    247247{
    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. */
    249250
    250251    int  proto;
     
    286287        cbToken = pszEndOfName - pszRaw; /* don't take : into account */
    287288        /* 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);
    289290
    290291        if (   cbToken < 0
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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