VirtualBox

Ignore:
Timestamp:
Jun 7, 2011 8:25:17 AM (14 years ago)
Author:
vboxsync
Message:

VBoxVideo: fix integer overflow in parameters check (#5720)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispDriver.cpp

    r37273 r37335  
    943943                &&  lpRgnData->rdh.dwSize == sizeof(RGNDATAHEADER)
    944944                &&  lpRgnData->rdh.iType  == RDH_RECTANGLES
    945                 &&  cjIn == lpRgnData->rdh.nCount * sizeof(RECT) + sizeof(RGNDATAHEADER))
     945                &&  cjIn == ((uint64_t)lpRgnData->rdh.nCount) * sizeof(RECT) + sizeof(RGNDATAHEADER))
    946946            {
    947947                DWORD   i;
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