[Bf-blender-cvs] [8b45fd8b612] blender2.8: UI: Fix out of bound read catched by asan.

Clément Foucault noreply at git.blender.org
Thu Mar 29 16:46:33 CEST 2018


Commit: 8b45fd8b61217e4ef6834d45665aad50541e2199
Author: Clément Foucault
Date:   Thu Mar 29 16:46:28 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB8b45fd8b61217e4ef6834d45665aad50541e2199

UI: Fix out of bound read catched by asan.

===================================================================

M	source/blender/editors/interface/interface_widgets.c

===================================================================

diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c
index 3e74f881cfd..60feaa74c01 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -935,7 +935,7 @@ static void widgetbase_draw(uiWidgetBase *wtb, uiWidgetColors *wcol)
 	}
 
 	/* Draw everything in one drawcall */
-	if (inner_col1[3] || inner_col2[3] || outline_col[3] || emboss_col[4]) {
+	if (inner_col1[3] || inner_col2[3] || outline_col[3] || emboss_col[3]) {
 		widgetbase_set_uniform_colors_ubv(wtb, inner_col1, inner_col2, outline_col, emboss_col);
 
 		Gwn_Batch *roundbox_batch = ui_batch_roundbox_get();



More information about the Bf-blender-cvs mailing list