mesa: fix Address Sanitizer (ASan) issue in _mesa_add_parameter()
authorBrian Paul <brianp@vmware.com>
Tue, 2 Jul 2013 20:51:30 +0000 (14:51 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 12 Jul 2013 14:32:51 +0000 (08:32 -0600)
commit5749aea255446b850a1b56f944a062358e5c70dd
tree99539d59122f85febc2b4f59ca54c6674cdbac80
parent9ca026e220f4bdec8cf0022387691a186809a677
mesa: fix Address Sanitizer (ASan) issue in _mesa_add_parameter()

If the size argument isn't a multiple of four, we would have read/
copied uninitialized memory.

Fixes an issue reported by Myles C. Maxfield <myles.maxfield@gmail.com>
src/mesa/program/prog_parameter.c