VirtualBox

Changeset 107775 in vbox for trunk/src/VBox/Devices/Samples


Ignore:
Timestamp:
Jan 15, 2025 1:03:17 PM (5 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166911
Message:

Devices/Samples/DevPlayground.cpp: Fix possible integer overflow, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Samples/DevPlayground.cpp

    r106061 r107775  
    276276        if (uBigBAR0MB < 1 || uBigBAR0MB > 4095)
    277277            return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Invalid \"BigBAR0MB\" value (must be between 1 and 4095)"));
    278         cbFirstBAR = uBigBAR0MB * _1M;
     278        cbFirstBAR = uBigBAR0MB * _1M64;
    279279    }
    280280
     
    297297        if (uBigBAR2MB < 1 || uBigBAR2MB > 4095)
    298298            return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Invalid \"BigBAR2MB\" value (must be between 1 and 4095)"));
    299         cbSecondBAR = uBigBAR2MB * _1M;
     299        cbSecondBAR = uBigBAR2MB * _1M64;
    300300    }
    301301
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