VirtualBox

Changeset 81949 in vbox


Ignore:
Timestamp:
Nov 18, 2019 4:41:06 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134746
Message:

DevIoApic: indexing paranoia. bugref:9218

File:
1 edited

Legend:

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

    r81948 r81949  
    397397 * @param   pThis       The shared I/O APIC device state.
    398398 * @param   pThisCC     The I/O APIC device state for the current context.
    399  * @param   idxRte      The index of the RTE.
     399 * @param   idxRte      The index of the RTE (validated).
    400400 *
    401401 * @remarks It is the responsibility of the caller to verify that an interrupt is
     
    10581058    pHlp->pfnPrintf(pHlp, "  idx dst_mode dst_addr mask irr trigger rirr polar dlvr_st dlvr_mode vector\n");
    10591059
    1060     for (uint8_t idxRte = 0; idxRte <= pThis->u8MaxRte; idxRte++)
     1060    uint8_t const idxMaxRte = RT_MIN(pThis->u8MaxRte, RT_ELEMENTS(pThis->au64RedirTable) - 1);
     1061    for (uint8_t idxRte = 0; idxRte <= idxMaxRte; idxRte++)
    10611062    {
    10621063        static const char * const s_apszDeliveryModes[] =
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