OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65974f6
)
mesa: Add assert to check input to memcpy is not null.
author
Vinson Lee
<vlee@vmware.com>
Sun, 28 Feb 2010 01:19:31 +0000
(17:19 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 28 Feb 2010 01:19:31 +0000
(17:19 -0800)
src/mesa/main/mipmap.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/mipmap.c
b/src/mesa/main/mipmap.c
index
355af56
..
89b8c5a
100644
(file)
--- a/
src/mesa/main/mipmap.c
+++ b/
src/mesa/main/mipmap.c
@@
-979,6
+979,7
@@
make_1d_mipmap(GLenum datatype, GLuint comps, GLint border,
if (border) {
/* copy left-most pixel from source */
+ assert(srcPtr);
memcpy(dstPtr, srcPtr, bpt);
/* copy right-most pixel from source */
memcpy(dstPtr + (dstWidth - 1) * bpt,