summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-03-02 01:01:23 -0800
committerVinson Lee <vlee@vmware.com>2010-03-02 01:01:46 -0800
commit247008f6c2014c8f84de3a27ac954afe2c418a93 (patch)
treee13a4cbac1410cd6f89a1debad21ea3ca6b2c935 /src/mesa
parent8bf5c229f3fdf2f3a6ae44afe03d3e1bd7194d6a (diff)
mesa: Add asserts to check inputs to memcpy.
Diffstat (limited to 'src/mesa')
-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 21ee317a31..e2efe81a8f 100644
--- a/src/mesa/main/mipmap.c
+++ b/src/mesa/main/mipmap.c
@@ -1269,6 +1269,8 @@ make_1d_stack_mipmap(GLenum datatype, GLuint comps, GLint border,
if (border) {
/* copy left-most pixel from source */
+ assert(dstPtr);
+ assert(srcPtr);
memcpy(dstPtr, srcPtr, bpt);
/* copy right-most pixel from source */
memcpy(dstPtr + (dstWidth - 1) * bpt,