glsl/linker: Avoid buffer over-run in parcel_out_uniform_storage::visit_field
authorStéphane Marchesin <marcheu@chromium.org>
Wed, 15 Aug 2012 00:15:54 +0000 (17:15 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Thu, 23 Aug 2012 18:42:19 +0000 (11:42 -0700)
commitff996cafce511dd8a6c4e066e409c23e147a670c
treecaa16dc434175df70044c999c0b77c37f1a78414
parent9b028faeaa2c4b0ca2e86892aac70a2f2b872fbb
glsl/linker: Avoid buffer over-run in parcel_out_uniform_storage::visit_field

When too may uniforms are used, the error will be caught in
check_resources (src/glsl/linker.cpp).

NOTE: This is a candidate for the 8.0 branch.

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Benoit Jacob <bjacob@mozilla.com>
src/glsl/link_uniforms.cpp