glsl: fix heap-buffer-overflow
authorBartosz Tomczyk <bartosz.tomczyk86@gmail.com>
Tue, 31 Jan 2017 11:02:20 +0000 (12:02 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 31 Jan 2017 14:58:52 +0000 (15:58 +0100)
commitfc27181f9e51441a26b7eb4f62794b5e9a994644
tree22919214af47575210fa4482e98d15afb4bcff89
parent658568941d5e232d690e1ffbcddbd6ea9685693a
glsl: fix heap-buffer-overflow

The `end+1` skips the ']', whereas the `strlen+1` includes the final
'\0' in the move to terminate the string.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/link_uniforms.cpp