VirtualBox

Changeset 20815 in vbox


Ignore:
Timestamp:
Jun 23, 2009 11:29:09 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: fix guest/host crashes when client app uses incorrect opengl states

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/packer/packer.py

    r20813 r20815  
    155155    #   print "\tCRASSERT(!pc->buffer.geometry_only); /* sanity check */"
    156156
     157    for index in range(0,len(params)):
     158        (name, type, vecSize) = params[index]
     159        if vecSize>0 and func_name!=orig_func_name:
     160            print "    if (!%s) {" % name
     161            # Know the reason for this one, so avoid the spam.
     162            if orig_func_name != "SecondaryColor3fvEXT":
     163                print "        crDebug(\"App passed NULL as %s for %s\");" % (name, orig_func_name)
     164            print "        return;"
     165            print "    }"
     166
    157167    packet_length = apiutil.PacketLength(nonVecParams)
    158168
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