projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e850f2
)
nvc0: Initialize ptr for unexpected sample_count on release builds.
author
Vinson Lee
<vlee@freedesktop.org>
Sun, 4 Aug 2013 07:13:53 +0000
(
00:13
-0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Tue, 6 Aug 2013 04:53:39 +0000
(21:53 -0700)
Fixes "Uninitialized pointer read" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/nvc0/nvc0_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nvc0/nvc0_context.c
b/src/gallium/drivers/nvc0/nvc0_context.c
index cd86040ab01279fbc6d8ec1fa235cbfabfe2df7c..8cd5fc5a6465df42bbdfde23977cd367e6d3cac1 100644
(file)
--- a/
src/gallium/drivers/nvc0/nvc0_context.c
+++ b/
src/gallium/drivers/nvc0/nvc0_context.c
@@
-394,6
+394,7
@@
nvc0_context_get_sample_position(struct pipe_context *pipe,
case 8: ptr = ms8; break;
default:
assert(0);
+ ptr = ms1;
break;
}
xy[0] = ptr[sample_index][0] * 0.0625f;