[Bf-blender-cvs] [c9f3339] temp_viewport_fx_merge: fix array range check
Mike Erwin
noreply at git.blender.org
Wed Apr 1 20:25:25 CEST 2015
Commit: c9f3339aa3c76808520b9bf791936e1af086e737
Author: Mike Erwin
Date: Wed Apr 1 14:16:29 2015 -0400
Branches: temp_viewport_fx_merge
https://developer.blender.org/rBc9f3339aa3c76808520b9bf791936e1af086e737
fix array range check
Allowed writing past the buffer’s end.
Thanks, clang!
===================================================================
M source/blender/gpu/intern/gpu_immediate.c
===================================================================
diff --git a/source/blender/gpu/intern/gpu_immediate.c b/source/blender/gpu/intern/gpu_immediate.c
index 7381ce6..6e3baf1 100644
--- a/source/blender/gpu/intern/gpu_immediate.c
+++ b/source/blender/gpu/intern/gpu_immediate.c
@@ -2388,7 +2388,7 @@ void gpuIndex##suffix(ctype nextIndex)
BLI_assert(GPU_IMMEDIATE->index->type == glsymbol); \
\
{ \
- if (GPU_IMMEDIATE->index->count < GPU_IMMEDIATE->index->maxIndexCount); \
+ if (GPU_IMMEDIATE->index->count < GPU_IMMEDIATE->index->maxIndexCount) \
return; \
} \
\
More information about the Bf-blender-cvs
mailing list