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/crserverlib/server_glsl.c

    r76553 r76787  
    182182    GLint i;
    183183
    184     if (n >= INT32_MAX / sizeof(GLuint))
     184    if (n <= 0 || n >= INT32_MAX / sizeof(GLuint))
    185185    {
    186186        crError("crServerDispatchDeleteProgramsARB: parameter 'n' is out of range");
     
    223223    (void) residences;
    224224
    225     if (n >= INT32_MAX / sizeof(GLuint))
     225    if (n <= 0 || n >= INT32_MAX / sizeof(GLuint))
    226226    {
    227227        crError("crServerDispatchAreProgramsResidentNV: parameter 'n' is out of range");
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette