VirtualBox

Ignore:
Timestamp:
Jan 11, 2019 8:00:15 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128124
Message:

3D: Parameters validation corrected, bugref:9327

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_visibleregion.c

    r76553 r76787  
    2626    GLint window = READ_DATA( 8, GLint );
    2727    GLint cRects = READ_DATA( 12, GLint );
    28     GLvoid *pRects = DATA_POINTER( 16, GLvoid );;
     28    GLvoid *pRects = DATA_POINTER( 16, GLvoid );
     29
     30    if (cRects <= 0 || cRects >= INT32_MAX / sizeof(GLint) / 8 || !DATA_POINTER_CHECK(16 + 4 * cRects * sizeof(GLint)))
     31    {
     32        crError("crUnpackExtendWindowVisibleRegion: parameter 'cRects' is out of range");
     33        return;
     34    }
     35
    2936    cr_unpackDispatch.WindowVisibleRegion( window, cRects, pRects );
    3037}
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