projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b25193
)
remove uintptr_t cast
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 1 Dec 2005 01:00:13 +0000
(
01:00
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 1 Dec 2005 01:00:13 +0000
(
01:00
+0000)
src/mesa/main/texstore.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstore.c
b/src/mesa/main/texstore.c
index 5f6fb29b5fbe0c9d0b1f2fce821e52ad4519898f..bfac3090866a77b2893be4d5e384ffa3ae0d2a0c 100644
(file)
--- a/
src/mesa/main/texstore.c
+++ b/
src/mesa/main/texstore.c
@@
-2165,7
+2165,7
@@
_mesa_validate_pbo_compressed_teximage(GLcontext *ctx,
return pixels;
}
if ((const GLubyte *) pixels + imageSize >
- (
const GLubyte *)(uintptr_t)
packing->BufferObj->Size) {
+ (
(const GLubyte *) 0) +
packing->BufferObj->Size) {
/* out of bounds read! */
_mesa_error(ctx, GL_INVALID_OPERATION, funcName, "(invalid PBO access");
return NULL;