VirtualBox

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


Ignore:
Timestamp:
Jan 15, 2025 1:18:52 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166916
Message:

VMM/VMMR3/GICR3.cpp: Fix currently impossible overflow (cCpus is very low due to VMM_MAX_CPU_COUNT), bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/GICR3.cpp

    r107308 r107780  
    462462                                N_("Configuration error: Failed to get the \"RedistributorMmioBase\" value"));
    463463
    464     RTGCPHYS cbRegion = pVM->cCpus * (GIC_REDIST_REG_FRAME_SIZE + GIC_REDIST_SGI_PPI_REG_FRAME_SIZE); /* Adjacent and per vCPU. */
     464    RTGCPHYS cbRegion = (RTGCPHYS)pVM->cCpus * (GIC_REDIST_REG_FRAME_SIZE + GIC_REDIST_SGI_PPI_REG_FRAME_SIZE); /* Adjacent and per vCPU. */
    465465    rc = PDMDevHlpMmioCreateAndMap(pDevIns, GCPhysMmioBase, cbRegion, gicReDistMmioWrite, gicReDistMmioRead,
    466466                                   IOMMMIO_FLAGS_READ_DWORD | IOMMMIO_FLAGS_WRITE_DWORD_ZEROED, "GICv3_ReDist", &pGicDev->hMmioReDist);
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