Commit: 5e121c8eab23d3d42745277f9c92617cb0aeb066
Author: Stefan Werner
Date:   Fri Jan 18 15:16:11 2019 +0100
Branches: master
https://developer.blender.org/rB5e121c8eab23d3d42745277f9c92617cb0aeb066

Cycles: Fixed uninitialized memory

Cryptomatte on CPU with accurate mode was hitting uninitialized variables.
This is now explicitly initializing them to NULL.

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

M       intern/cycles/device/device_cpu.cpp

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

diff --git a/intern/cycles/device/device_cpu.cpp 
b/intern/cycles/device/device_cpu.cpp
index 16908b0244a..a92c052a5df 100644
--- a/intern/cycles/device/device_cpu.cpp
+++ b/intern/cycles/device/device_cpu.cpp
@@ -924,6 +924,7 @@ protected:
                        kg.decoupled_volume_steps[i] = NULL;
                }
                kg.decoupled_volume_steps_index = 0;
+               kg.coverage_asset = kg.coverage_object = kg.coverage_material = 
NULL;
 #ifdef WITH_OSL
                OSLShader::thread_init(&kg, &kernel_globals, &osl_globals);
 #endif

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to