VirtualBox

Changeset 50948 in vbox


Ignore:
Timestamp:
Apr 1, 2014 6:36:16 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93096
Message:

crOpenGL: bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp

    r50944 r50948  
    248248    Assert(srcX >= 0);
    249249    Assert(srcY >= 0);
    250     Assert(srcX < (int32_t)pSrc->width);
    251     Assert(srcY < (int32_t)pSrc->height);
     250    if(srcX >= (int32_t)pSrc->width)
     251    {
     252        WARN(("invalid x"));
     253        return;
     254    }
     255    if(srcY >= (int32_t)pSrc->height)
     256    {
     257        WARN(("invalid y"));
     258        return;
     259    }
    252260
    253261    int32_t dstX = pCopyRect->xLeft - pDstDataPoint->x;
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