VirtualBox

Changeset 40301 in vbox for trunk


Ignore:
Timestamp:
Feb 29, 2012 3:07:21 PM (13 years ago)
Author:
vboxsync
Message:

GuestHost/OpenGL: fixed upper array bounds

Location:
trunk/src/VBox/GuestHost/OpenGL/state_tracker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_client.c

    r38600 r40301  
    909909    FLUSH();
    910910
    911     if (index > CR_MAX_VERTEX_ATTRIBS)
     911    if (index >= CR_MAX_VERTEX_ATTRIBS)
    912912    {
    913913        crStateError(__LINE__, __FILE__, GL_INVALID_VALUE, "glVertexAttribPointerARB: invalid index: %d", (int) index);
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_regcombiner.c

    r33540 r40301  
    543543        }
    544544
    545         if (i < 0 || i > CR_MAX_GENERAL_COMBINERS) {
     545        if (i < 0 || i >= CR_MAX_GENERAL_COMBINERS) {
    546546                crStateError(__LINE__, __FILE__, GL_INVALID_ENUM,
    547547                                                                 "GetCombinerInputParameterivNV(stage=0x%x)", stage);
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