Changeset 93081 in vbox for trunk/src/VBox/Runtime/common/fs
- Timestamp:
- Dec 26, 2021 1:25:45 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/fs/isovfs.cpp
r90216 r93081 451 451 452 452 453 454 /*********************************************************************************************************************************455 * Global Variables *456 *********************************************************************************************************************************/457 458 459 453 /********************************************************************************************************************************* 460 454 * Internal Functions * … … 2434 2428 * @param cchEntry The length of the compare string. 2435 2429 * @param puVersion Where to return any file version number. 2430 * 2431 * @note We're using RTStrNICmpAscii here because of non-conforming ISOs with 2432 * entirely lowercase name or mixed cased names. 2436 2433 */ 2437 2434 DECL_FORCE_INLINE(bool) rtFsIsoDir_IsEntryEqualAscii(PCISO9660DIRREC pDirRec, const char *pszEntry, size_t cchEntry, 2438 2435 uint32_t *puVersion) 2439 2436 { 2440 2437 /* ASSUME directories cannot have any version tags. */ … … 2443 2440 if (RT_LIKELY(pDirRec->bFileIdLength != cchEntry)) 2444 2441 return false; 2445 if (RT_LIKELY( memcmp(pDirRec->achFileId, pszEntry, cchEntry) != 0))2442 if (RT_LIKELY(RTStrNICmpAscii(pDirRec->achFileId, pszEntry, cchEntry) != 0)) 2446 2443 return false; 2447 2444 } … … 2453 2450 if (cchNameDelta == 0) 2454 2451 { 2455 if (RT_LIKELY( memcmp(pDirRec->achFileId, pszEntry, cchEntry) != 0))2452 if (RT_LIKELY(RTStrNICmpAscii(pDirRec->achFileId, pszEntry, cchEntry) != 0)) 2456 2453 return false; 2457 2454 *puVersion = 1; … … 2461 2458 if (RT_LIKELY(pDirRec->achFileId[cchEntry] != ';')) 2462 2459 return false; 2463 if (RT_LIKELY( memcmp(pDirRec->achFileId, pszEntry, cchEntry) != 0))2460 if (RT_LIKELY(RTStrNICmpAscii(pDirRec->achFileId, pszEntry, cchEntry) != 0)) 2464 2461 return false; 2465 2462 uint32_t uVersion; … … 5787 5784 "Not ISO? Unable to recognize volume descriptor signature: %.5Rhxs", Buf.VolDescHdr.achStdId); 5788 5785 else if (enmState == kStateCdSeq) 5786 { 5787 #if 1 5788 /* The warp server for ebusiness update ISOs knowns as ACP2 & MCP2 ends up here, 5789 as they do in deed miss a terminator volume descriptor and we're now at the 5790 root directory already. Just detect this, ignore it and get on with things. */ 5791 Log(("rtFsIsoVolTryInit: Ignoring missing ISO 9660 terminator volume descriptor (found %.5Rhxs).\n", 5792 Buf.VolDescHdr.achStdId)); 5793 break; 5794 #else 5789 5795 return RTERRINFO_LOG_SET_F(pErrInfo, VERR_VFS_BOGUS_FORMAT, 5790 5796 "Missing ISO 9660 terminator volume descriptor? (Found %.5Rhxs)", Buf.VolDescHdr.achStdId); 5797 #endif 5798 } 5791 5799 else if (enmState == kStateUdfSeq) 5792 5800 return RTERRINFO_LOG_SET_F(pErrInfo, VERR_VFS_BOGUS_FORMAT,
Note:
See TracChangeset
for help on using the changeset viewer.