Changeset 63285 in vbox for trunk/src/VBox/NetworkServices/NetLib
- Timestamp:
- Aug 10, 2016 3:04:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.