[Bf-blender-cvs] [1e3a489] multiview: Fix sanitized memory for rna_camera

Dalai Felinto noreply at git.blender.org
Thu Aug 14 19:56:02 CEST 2014


Commit: 1e3a4891be1296fccd25f1d402e35124febbfccd
Author: Dalai Felinto
Date:   Thu Aug 14 16:06:00 2014 +0200
Branches: multiview
https://developer.blender.org/rB1e3a4891be1296fccd25f1d402e35124febbfccd

Fix sanitized memory for rna_camera

(thanks to -fsanitize=address and Lukas Toenne ;)

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

M	source/blender/makesrna/intern/rna_camera.c

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

diff --git a/source/blender/makesrna/intern/rna_camera.c b/source/blender/makesrna/intern/rna_camera.c
index eaca623..c6e38a2 100644
--- a/source/blender/makesrna/intern/rna_camera.c
+++ b/source/blender/makesrna/intern/rna_camera.c
@@ -105,6 +105,7 @@ static void rna_def_camera_stereo_data(BlenderRNA *brna)
 		{CAM_S3D_PIVOT_LEFT, "LEFT", 0, "Left", ""},
 		{CAM_S3D_PIVOT_RIGHT, "RIGHT", 0, "Right", ""},
 		{CAM_S3D_PIVOT_CENTER, "CENTER", 0, "Center", ""},
+		{0, NULL, 0, NULL, NULL}
 	};
 
 	srna = RNA_def_struct(brna, "CameraStereoData", NULL);




More information about the Bf-blender-cvs mailing list