summaryrefslogtreecommitdiff
path: root/src/mesa/main/mipmap.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-03-04 00:41:21 -0800
committerVinson Lee <vlee@vmware.com>2010-03-04 00:41:21 -0800
commitdf62b0da92f50b309d79d6552ecdf5a59910c80a (patch)
tree665fca1f79317b0ba1979e2e8de77de777e86c10 /src/mesa/main/mipmap.c
parent25e439e69f3f5e77062321f6e496391c090e889f (diff)
mesa: Add asserts to check inputs to memcpy.
Diffstat (limited to 'src/mesa/main/mipmap.c')
-rw-r--r--src/mesa/main/mipmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c
index e2efe81a8f..51f7edfab1 100644
--- a/src/mesa/main/mipmap.c
+++ b/src/mesa/main/mipmap.c
@@ -1325,6 +1325,8 @@ make_2d_stack_mipmap(GLenum datatype, GLuint comps, GLint border,
if (border > 0) {
/* fill in dest border */
/* lower-left border pixel */
+ assert(dstPtr);
+ assert(srcPtr);
memcpy(dstPtr, srcPtr, bpt);
/* lower-right border pixel */
memcpy(dstPtr + (dstWidth - 1) * bpt,