VirtualBox

Changeset 49427 in vbox


Ignore:
Timestamp:
Nov 8, 2013 4:55:32 PM (11 years ago)
Author:
vboxsync
Message:

DevVGA: check parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r49420 r49427  
    630630    if (fShape)
    631631    {
     632         if (pShape->u32Width > 8192 || pShape->u32Height > 8192)
     633         {
     634             Log(("vbvaMousePointerShape: unsupported size %ux%u\n",
     635                   pShape->u32Width, pShape->u32Height));
     636             return VERR_INVALID_PARAMETER;
     637         }
     638
    632639         cbPointerData = ((((pShape->u32Width + 7) / 8) * pShape->u32Height + 3) & ~3)
    633640                         + pShape->u32Width * 4 * pShape->u32Height;
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