Perform range checking on app supplied texture base level
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 15 Dec 2008 02:42:11 +0000 (18:42 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 15 Dec 2008 02:46:18 +0000 (18:46 -0800)
commit1126aa86bf9ca223218695eec1f41c6523068961
tree4028a45a7a23a1d1ad0e6e5ef26d73e941f93bb7
parent63cca2ba10ce7dcc8481cfa4be3872dfc269dded
Perform range checking on app supplied texture base level

It is possible for applications to specify any texture base level,
including trivially invalid values (i.e., 47000000).  When an app
specifies an invalide base level, we should gracefully disable the
texture instead of accessing memory outside the gl_texture_object.

This fixes an occasional segfault in one of our conformance tests.
src/mesa/main/texobj.c