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_RotateOperation.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_RotateOperation.cc')
-rw-r--r-- | source/blender/compositor/operations/COM_RotateOperation.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_RotateOperation.cc b/source/blender/compositor/operations/COM_RotateOperation.cc index 8129516f81c..145a2f9c9d0 100644 --- a/source/blender/compositor/operations/COM_RotateOperation.cc +++ b/source/blender/compositor/operations/COM_RotateOperation.cc @@ -227,7 +227,7 @@ void RotateOperation::determine_canvas(const rcti &preferred_area, rcti &r_area) get_input_socket(IMAGE_INPUT_INDEX)->determine_canvas(preferred_area, r_area); if (image_determined) { rcti input_canvas = r_area; - rcti unused; + rcti unused = COM_AREA_NONE; get_input_socket(DEGREE_INPUT_INDEX)->determine_canvas(input_canvas, unused); ensure_degree(); |