commit | e59e2c664f3380642138bb27914237380ff778ce | [log] [tgz] |
---|---|---|
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | Wed Feb 22 20:04:39 2017 +0100 |
committer | Emil Velikov <emil.l.velikov@gmail.com> | Wed Mar 15 18:54:31 2017 +0000 |
tree | 29eae6a5e89610a1d7520f825a0f2b8960ea23b5 | |
parent | ea7711fc0f12dd5c1ee1594884cf543b77e35cf9 [diff] |
st/glsl_to_tgsi: avoid iterating past the head of the instruction list exec_node::get_prev() does not guard against going past the beginning of the list, so we need to add explicit checks here. Found by ASAN in piglit arb_shader_storage_buffer_object-rendering. Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Marek Olšák <marek.olsak@amd.com> (cherry picked from commit 911391bd70fe30ad970c5e56632b2d7ccc29d955)