Changeset 58017 in vbox
- Timestamp:
- Oct 3, 2015 6:53:14 PM (9 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/USBIdDatabase.h
r58016 r58017 105 105 Assert(pStr->cch < s_cchStrTab); 106 106 Assert(pStr->off < s_cchStrTab); 107 Assert(pStr->off + pStr->cch < s_cchStrTab);107 Assert(pStr->off + (size_t)pStr->cch < s_cchStrTab); 108 108 109 109 #ifdef USB_ID_DATABASE_WITH_COMPRESSION … … 136 136 Assert(pStr2->cch < s_cchStrTab); 137 137 Assert(pStr2->off < s_cchStrTab); 138 Assert(pStr2->off + pStr->cch < s_cchStrTab);138 Assert(pStr2->off + (size_t)pStr->cch < s_cchStrTab); 139 139 Assert((uintptr_t)(&pchDst[pStr2->cch] - &szTmp[0]) < USB_ID_DATABASE_MAX_STRING); 140 140 memcpy(pchDst, &s_achStrTab[pStr2->off], pStr2->cch); -
trunk/src/VBox/Main/src-server/USBIdDatabaseGenerator.cpp
r58016 r58017 453 453 FixupString(&it->vendor.str, &cchOld, &cchNew); 454 454 455 for ( unsignedi = 0; i < RT_ELEMENTS(g_aCompDict); i++)455 for (i = 0; i < RT_ELEMENTS(g_aCompDict); i++) 456 456 cchNew += g_aCompDict[i].str.length() + 1; 457 457
Note:
See TracChangeset
for help on using the changeset viewer.