shader-types: Check the size of the values
authorRichard Hughes <richard@hughsie.com>
Wed, 16 Jun 2010 15:19:48 +0000 (16:19 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 16 Jun 2010 16:14:57 +0000 (17:14 +0100)
commit2a354d9650bb8215dd75a90b947fb82734c35b78
tree740c4eb2f67f7eb78ea3fc5f3515c3939c3420bc
parent2d99f77e3b0027c83b9b2068d65b39d18dbfdbd3
shader-types: Check the size of the values

Emit a critical error if the user tries to send more data than
the static shader GValues can hold.

This fixes the random memory corruption you get when specifying
size > 4.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
clutter/clutter-shader-types.c