VirtualBox

Changeset 99756 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 11, 2023 7:26:52 PM (19 months ago)
Author:
vboxsync
Message:

VMM/CPUMR3Db: Fix harmless range check, bugref:3409

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUMR3Db-armv8.cpp

    r99386 r99756  
    101101VMMR3DECL(PCCPUMDBENTRY)    CPUMR3DbGetEntryByIndex(uint32_t idxCpuDb)
    102102{
    103     AssertReturn(idxCpuDb <= RT_ELEMENTS(g_apCpumDbEntries), NULL);
     103    AssertReturn(idxCpuDb < RT_ELEMENTS(g_apCpumDbEntries), NULL);
    104104    return g_apCpumDbEntries[idxCpuDb];
    105105}
  • trunk/src/VBox/VMM/VMMR3/CPUMR3Db.cpp

    r98103 r99756  
    308308VMMR3DECL(PCCPUMDBENTRY)    CPUMR3DbGetEntryByIndex(uint32_t idxCpuDb)
    309309{
    310     AssertReturn(idxCpuDb <= RT_ELEMENTS(g_apCpumDbEntries), NULL);
     310    AssertReturn(idxCpuDb < RT_ELEMENTS(g_apCpumDbEntries), NULL);
    311311    return g_apCpumDbEntries[idxCpuDb];
    312312}
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