projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
960bf97
)
new assertions
author
Brian
<brian@i915.localnet.net>
Wed, 8 Aug 2007 22:06:48 +0000
(16:06 -0600)
committer
Brian
<brian@i915.localnet.net>
Wed, 8 Aug 2007 22:10:40 +0000
(16:10 -0600)
src/mesa/drivers/dri/intel_winsys/intel_surface.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel_winsys/intel_surface.c
b/src/mesa/drivers/dri/intel_winsys/intel_surface.c
index 3fa40271c8379d5ba3168332eae669e83c962f3d..d2e2dabadeaebc06d3d565aa34d20d3e6be3c9da 100644
(file)
--- a/
src/mesa/drivers/dri/intel_winsys/intel_surface.c
+++ b/
src/mesa/drivers/dri/intel_winsys/intel_surface.c
@@
-40,6
+40,8
@@
read_quad_f_swz(struct softpipe_surface *sps, GLint x, GLint y,
GLuint j;
assert(sps->surface.format == PIPE_FORMAT_U_A8_R8_G8_B8);
+ assert(x < sps->surface.width - 1);
+ assert(y < sps->surface.height - 1);
memcpy(temp + 8, src, 8);
memcpy(temp + 0, src + bytesPerRow, 8);