VirtualBox

Changeset 58017 in vbox


Ignore:
Timestamp:
Oct 3, 2015 6:53:14 PM (9 years ago)
Author:
vboxsync
Message:

USBIdDatabase.*: Warnings.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/USBIdDatabase.h

    r58016 r58017  
    105105        Assert(pStr->cch < s_cchStrTab);
    106106        Assert(pStr->off < s_cchStrTab);
    107         Assert(pStr->off + pStr->cch < s_cchStrTab);
     107        Assert(pStr->off + (size_t)pStr->cch < s_cchStrTab);
    108108
    109109#ifdef USB_ID_DATABASE_WITH_COMPRESSION
     
    136136                Assert(pStr2->cch < s_cchStrTab);
    137137                Assert(pStr2->off < s_cchStrTab);
    138                 Assert(pStr2->off + pStr->cch < s_cchStrTab);
     138                Assert(pStr2->off + (size_t)pStr->cch < s_cchStrTab);
    139139                Assert((uintptr_t)(&pchDst[pStr2->cch] - &szTmp[0]) < USB_ID_DATABASE_MAX_STRING);
    140140                memcpy(pchDst, &s_achStrTab[pStr2->off], pStr2->cch);
  • trunk/src/VBox/Main/src-server/USBIdDatabaseGenerator.cpp

    r58016 r58017  
    453453        FixupString(&it->vendor.str, &cchOld, &cchNew);
    454454
    455     for (unsigned i = 0; i < RT_ELEMENTS(g_aCompDict); i++)
     455    for (i = 0; i < RT_ELEMENTS(g_aCompDict); i++)
    456456        cchNew += g_aCompDict[i].str.length() + 1;
    457457
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette