VirtualBox

Changeset 25854 in vbox


Ignore:
Timestamp:
Jan 15, 2010 11:07:26 AM (15 years ago)
Author:
vboxsync
Message:

DevACPI.cpp: bound checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r25845 r25854  
    14271427                case SYSTEM_INFO_INDEX_CPU_LOCKED:
    14281428                {
    1429                     if (s->idCpuLockCheck != UINT32_C(0xffffffff))
     1429                    if (s->idCpuLockCheck < VMM_MAX_CPU_COUNT)
    14301430                    {
    1431                         *pu32 = VMCPUSET_IS_PRESENT(&s->CpuSetLocked, s->idCpuLockCheck) ? 1 : 0;
     1431                        *pu32 = VMCPUSET_IS_PRESENT(&s->CpuSetLocked, s->idCpuLockCheck);
    14321432                        s->idCpuLockCheck = UINT32_C(0xffffffff); /* Make the entry invalid */
    14331433                    }
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