In _mesa_add_parameter, in prog_parameter.c, |values| represents an
array holding a variable number of values. These values get copied out
of the array 4 at a time with the COPY_4V macro, however, the array
might only contain a single element. In this case, ASAN reports a
read-before-initialize because the last 3 of the 4 elements haven't
been written to yet.

This patch should be upstreamed to Mesa.

BUG=238755
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/17122007

git-svn-id: svn://svn.chromium.org/chrome/trunk/deps/third_party/mesa@206770 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed