diff options
author | Jacques Lucke <jacques@blender.org> | 2021-11-29 21:23:43 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-11-29 21:23:43 +0300 |
commit | e7ae9f493aaa004caf3627489752139f177a807b (patch) | |
tree | 0877ae732204c3b6f5d5e9aa630340bd29087a1b /source/blender/compositor/operations/COM_MixOperation.cc | |
parent | aa7051c8f21a6b7e2b413b40317502e69764fa05 (diff) |
Fix T93310: crash due to broken image paths
The crash was caused by allocating an uninitialized amount of memory.
This fix initializes a bunch of variables that could cause the error.
It should be possible to also fix this in the function that actually uses
the uninitialized memory, but that could cause unknown consequences
that are a bit too risky for 3.0. Just initializing some variables should
be safe though. For more details see D13369.
Differential Revision: https://developer.blender.org/D13369
Diffstat (limited to 'source/blender/compositor/operations/COM_MixOperation.cc')
-rw-r--r-- | source/blender/compositor/operations/COM_MixOperation.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_MixOperation.cc b/source/blender/compositor/operations/COM_MixOperation.cc index 09bbb633459..edae4454b13 100644 --- a/source/blender/compositor/operations/COM_MixOperation.cc +++ b/source/blender/compositor/operations/COM_MixOperation.cc @@ -70,7 +70,7 @@ void MixBaseOperation::execute_pixel_sampled(float output[4], void MixBaseOperation::determine_canvas(const rcti &preferred_area, rcti &r_area) { NodeOperationInput *socket; - rcti temp_area; + rcti temp_area = COM_AREA_NONE; socket = this->get_input_socket(1); bool determined = socket->determine_canvas(COM_AREA_NONE, temp_area); |