VirtualBox

Changeset 12141 in vbox


Ignore:
Timestamp:
Sep 5, 2008 3:49:14 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36101
Message:

timer-r0drv-linux. Fixed bug in RTTimerStart where changes to the +1 entry in the aSubTimers array was made. This may have caused heap corruption and/or kernel panics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c

    r9529 r12141  
    470470    {
    471471        RTMpGetOnlineSet(&OnlineSet);
    472         for (iCpu = 0; iCpu <= pTimer->cCpus; iCpu++)
     472        for (iCpu = 0; iCpu < pTimer->cCpus; iCpu++)
    473473        {
    474474            Assert(pTimer->aSubTimers[iCpu].enmState != RTTIMERLNXSTATE_MP_STOPPING);
     
    498498    RTSpinlockAcquire(pTimer->hSpinlock, &Tmp);
    499499
    500     for (iCpu = 0; iCpu <= pTimer->cCpus; iCpu++)
     500    for (iCpu = 0; iCpu < pTimer->cCpus; iCpu++)
    501501        if (rtTimerLnxCmpXchgState(&pTimer->aSubTimers[iCpu].enmState, RTTIMERLNXSTATE_STOPPED, RTTIMERLNXSTATE_STARTING))
    502502        {
Note: See TracChangeset for help on using the changeset viewer.

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