Mesa (master): draw: Add assert to check input of memcpy.
Vinson Lee
vlee at kemper.freedesktop.org
Mon Feb 15 06:59:42 UTC 2010
Module: Mesa
Branch: master
Commit: 6536cdf1836a302d334f7380d1723e8f0bc396be
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6536cdf1836a302d334f7380d1723e8f0bc396be
Author: Vinson Lee <vlee at vmware.com>
Date: Sun Feb 14 22:58:26 2010 -0800
draw: Add assert to check input of memcpy.
---
src/gallium/auxiliary/draw/draw_vs.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
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);
More information about the mesa-commit
mailing list