projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bf5c22
)
mesa: Add asserts to check inputs to memcpy.
author
Vinson Lee
<vlee@vmware.com>
Tue, 2 Mar 2010 09:01:23 +0000
(
01:01
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 2 Mar 2010 09:01:46 +0000
(
01:01
-0800)
src/mesa/main/mipmap.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/mipmap.c
b/src/mesa/main/mipmap.c
index 21ee317a3185339a1d469c39b94974841db845cf..e2efe81a8f78d1931273dfa4b4667d487c45f090 100644
(file)
--- 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,