Changeset 66608 in vbox
- Timestamp:
- Apr 19, 2017 10:35:06 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 114647
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPR3HardenedVerify.cpp
r66554 r66608 1188 1188 1189 1189 /* 1190 * Check each component. No parent references or double slashes. 1190 * The root slash should be alone to avoid UNC confusion. 1191 */ 1192 if (RTPATH_IS_SLASH(pszSrc[0])) 1193 return supR3HardenedSetError3(VERR_SUPLIB_PATH_NOT_CLEAN, pErrInfo, 1194 "The path is not clean of leading double slashes: '", pszPath, "'"); 1195 /* 1196 * Check each component. No parent references. 1191 1197 */ 1192 1198 pInfo->cComponents = 0; … … 1195 1201 { 1196 1202 /* Sanity checks. */ 1197 if (RTPATH_IS_SLASH(pszSrc[0])) /* can be relaxed if we care. */1198 return supR3HardenedSetError3(VERR_SUPLIB_PATH_NOT_CLEAN, pErrInfo,1199 "The path is not clean of double slashes: '", pszPath, "'");1200 1203 if ( pszSrc[0] == '.' 1201 1204 && pszSrc[1] == '.' … … 1227 1230 "The path is too long: '", pszPath, "'"); 1228 1231 } 1232 1233 /* Skip double slashes. */ 1234 while (RTPATH_IS_SLASH(*pszSrc)) 1235 pszSrc++; 1229 1236 } 1230 1237
Note:
See TracChangeset
for help on using the changeset viewer.