projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25e439e
)
mesa: Add asserts to check inputs to memcpy.
author
Vinson Lee
<vlee@vmware.com>
Thu, 4 Mar 2010 08:41:21 +0000
(
00:41
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 4 Mar 2010 08:41:21 +0000
(
00:41
-0800)
src/mesa/main/mipmap.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/mipmap.c
b/src/mesa/main/mipmap.c
index e2efe81a8f78d1931273dfa4b4667d487c45f090..51f7edfab123c04c20414f22136c198276530cea 100644
(file)
--- 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,