From 6536cdf1836a302d334f7380d1723e8f0bc396be Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 14 Feb 2010 22:58:26 -0800 Subject: draw: Add assert to check input of memcpy. --- src/gallium/auxiliary/draw/draw_vs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/auxiliary/draw/draw_vs.c') diff --git a/src/gallium/auxiliary/draw/draw_vs.c b/src/gallium/auxiliary/draw/draw_vs.c index 6bdd612..9085838 100644 --- a/src/gallium/auxiliary/draw/draw_vs.c +++ b/src/gallium/auxiliary/draw/draw_vs.c @@ -61,6 +61,7 @@ draw_vs_set_constants(struct draw_context *draw, } draw->vs.aligned_constant_storage[slot] = align_malloc(size, 16); } + assert(constants); memcpy((void *)draw->vs.aligned_constant_storage[slot], constants, size); -- cgit v1.1