- Timestamp:
- Dec 29, 2021 10:21:13 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/UnattendedOs2Installer.cpp
r93094 r93096 849 849 if ( !pszTail 850 850 || pszTail - pszMarker > 64 851 || memchr(pszMarker, '\\', pszTail - pszMarker)852 || memchr(pszMarker, '/', pszTail - pszMarker)853 || memchr(pszMarker, ':', pszTail - pszMarker)851 || memchr(pszMarker, '\\', (size_t)(pszTail - pszMarker)) 852 || memchr(pszMarker, '/', (size_t)(pszTail - pszMarker)) 853 || memchr(pszMarker, ':', (size_t)(pszTail - pszMarker)) 854 854 ) 855 855 return mpParent->setErrorBoth(E_FAIL, VERR_PARSE_ERROR, 856 856 tr("Malformed splitter tag in '%s' at offset %p: @@VBOX_SPLITTER_START[%.64s"), 857 857 pszFileToSplit, (size_t)(pszEnd - pszMarker), pszMarker); 858 int vrc = RTStrValidateEncodingEx(pszMarker, pszTail - pszMarker, RTSTR_VALIDATE_ENCODING_EXACT_LENGTH);858 int vrc = RTStrValidateEncodingEx(pszMarker, (size_t)(pszTail - pszMarker), RTSTR_VALIDATE_ENCODING_EXACT_LENGTH); 859 859 if (RT_FAILURE(vrc)) 860 860 return mpParent->setErrorBoth(E_FAIL, vrc, … … 877 877 /* Advance. */ 878 878 pszSrc = pszDocStart; 879 cbLeft = pszEnd - pszDocStart;879 cbLeft = (size_t)(pszEnd - pszDocStart); 880 880 881 881 /*
Note:
See TracChangeset
for help on using the changeset viewer.