CMake build option for security report: CVE-2009-3850
[blender-staging.git] / source / blender / blenkernel / intern / blender.c
index d1a181046a6c2cf47ebe166459188993cacc5480..ce6a95430e3005025cd3407009d4d0086db3da4c 100644 (file)
@@ -140,8 +140,12 @@ void initglobals(void)
        G.charstart = 0x0000;
        G.charmin = 0x0000;
        G.charmax = 0xffff;
-       
+
+#ifndef WITH_PYTHON_SECURITY /* default */
        G.f |= G_SCRIPT_AUTOEXEC;
+#else
+       G.f &= ~G_SCRIPT_AUTOEXEC;
+#endif
 }
 
 /***/