diff options
author | Vinson Lee <vlee@freedesktop.org> | 2015-03-22 00:28:26 -0700 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2015-03-24 22:51:59 -0700 |
commit | d8f192df08540d4062d69fec2d8cce872b291b23 (patch) | |
tree | 78b5e40e915c7d55a7179f6ac0647fa7ff730507 | |
parent | 517fc3939c89d37b3d4d3723ac81ca71538e88a9 (diff) |
glsl-1.50/execution/geometry: Fix out-of-bounds read.
Fix out-of-bounds read defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
-rw-r--r-- | tests/spec/glsl-1.50/execution/geometry/geometry-end-primitive-optional-with-points-out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/spec/glsl-1.50/execution/geometry/geometry-end-primitive-optional-with-points-out.c b/tests/spec/glsl-1.50/execution/geometry/geometry-end-primitive-optional-with-points-out.c index 5b8d2d530..a8813302d 100644 --- a/tests/spec/glsl-1.50/execution/geometry/geometry-end-primitive-optional-with-points-out.c +++ b/tests/spec/glsl-1.50/execution/geometry/geometry-end-primitive-optional-with-points-out.c @@ -139,7 +139,7 @@ probe_pixel_rgb_neighborhood(int x, int y, const float expected[3]) glReadPixels(x - 2, y - 2, 5, 5, GL_RGBA, GL_FLOAT, pixels); for (j = 0; j < 5; j++) { - for (i = 0; i <= 5; i++) { + for (i = 0; i < 5; i++) { float *p = pixels[j][i]; for (k = 0; k < 3; k++) { |