VirtualBox

Changeset 83626 in vbox for trunk


Ignore:
Timestamp:
Apr 8, 2020 6:02:14 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137059
Message:

VMSVGA: consider only allowed output reg names, bugref:9668

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/shaderlib/glsl_shader.c

    r83176 r83626  
    16321632
    16331633        case WINED3DSPR_RASTOUT:
    1634             sprintf(register_name, "%s", hwrastout_reg_names[reg->idx]);
     1634            if (reg->idx < RT_ELEMENTS(hwrastout_reg_names)) sprintf(register_name, "%s", hwrastout_reg_names[reg->idx]);
     1635            else sprintf(register_name, "%s", hwrastout_reg_names[0]);
    16351636            break;
    16361637
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