glcpp: Fix segfault when validating macro redefinitions
authorChad Versace <chad.versace@intel.com>
Tue, 11 Jan 2011 00:55:17 +0000 (16:55 -0800)
committerChad Versace <chad.versace@intel.com>
Tue, 11 Jan 2011 01:28:24 +0000 (17:28 -0800)
commit4fff52f1c973f2f284c142fbb31536a9656767c9
tree6916f847a33adc7a2b542cad136b91b8162cfd4a
parentc0cdae03685056e170c25da7d46aed959176d652
glcpp: Fix segfault when validating macro redefinitions

In _token_list_equal_ignoring_space(token_list_t*, token_list_t*), add
a guard that prevents dereferncing a null token list.

This fixes test src/glsl/glcpp/tests/092-redefine-macro-error-2.c and
Bugzilla #32695.
src/glsl/glcpp/glcpp-parse.y