[Piglit] [PATCH] gl-3.3-vertex-attrib-pointer-type-size-match: Fix typos.

Vinson Lee vlee at freedesktop.org
Sat Jan 18 15:19:26 PST 2014


Use correct inputs for the negative tests.

Fixes "Out-of-bounds read" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 .../vertex-attrib-pointer-type-size-match.c                           | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/spec/arb_vertex_type_2_10_10_10_rev/vertex-attrib-pointer-type-size-match.c b/tests/spec/arb_vertex_type_2_10_10_10_rev/vertex-attrib-pointer-type-size-match.c
index 7ed5e6f..c8eceb8 100644
--- a/tests/spec/arb_vertex_type_2_10_10_10_rev/vertex-attrib-pointer-type-size-match.c
+++ b/tests/spec/arb_vertex_type_2_10_10_10_rev/vertex-attrib-pointer-type-size-match.c
@@ -70,12 +70,12 @@ piglit_init(int argc, char **argv)
 	}
 
 	for (i = 0; i < ARRAY_SIZE(invalid_sizes); i++) {
-		glVertexAttribPointer(0, valid_sizes[i],
+		glVertexAttribPointer(0, invalid_sizes[i],
 					GL_INT_2_10_10_10_REV, GL_TRUE,
 					0, NULL);
 		pass = piglit_check_gl_error(GL_INVALID_OPERATION) && pass;
 
-		glVertexAttribPointer(0, valid_sizes[i],
+		glVertexAttribPointer(0, invalid_sizes[i],
 					GL_UNSIGNED_INT_2_10_10_10_REV, GL_TRUE,
 					0, NULL);
 		pass = piglit_check_gl_error(GL_INVALID_OPERATION) && pass;
-- 
1.8.3.2



More information about the Piglit mailing list