st/mesa: use signed temporary variable to store _ColorDrawBufferIndexes
The temporary variable used to store _ColorDrawBufferIndexes must be signed (GLint), otherwise the following conditional will be incorrectly evaluated. Leading to crashes in the driver/mesa or accessing/writing to arbitrary memory location. The bug dates back to 2009. Cc: 10.0 9.2 9.1 <mesa-stable@lists.freedesktop.org> Reviewed-by:Marek Olšák <marek.olsak@amd.com> Signed-off-by:
Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit bfcf78c1)
Please register or sign in to comment