Skip to content
Snippets Groups Projects
Commit 0a27c07d authored by Samuel Pitoiset's avatar Samuel Pitoiset Committed by Emil Velikov
Browse files

st/glsl_to_tgsi: fix potential crash when allocating temporaries


When index - t->temps_size is greater than 4096, allocating space for
temporaries on demand will miserably crash. This can happen when a game
uses a lot of temporaries like the recent released Tomb raider.

Signed-off-by: default avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: default avatarNicolai Hähnle <nicolai.haehnle@amd.com>
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 8f2238cc)
parent a407f06e
No related branches found
Tags mesa-18.0.0-rc3
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment