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_texture.c

    r73223 r76787  
    328328    const GLuint *textures = DATA_POINTER( 12, const GLuint );
    329329
    330     if (n > UINT32_MAX / sizeof(GLuint) / 4 || !DATA_POINTER_CHECK(20 + n * sizeof(GLuint)))
     330    if (n <= 0 || n >= INT32_MAX / sizeof(GLuint) / 4 || !DATA_POINTER_CHECK(20 + n * sizeof(GLuint)))
    331331    {
    332332        crError("crUnpackExtendAreTexturesResident: %d is out of range", n);
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