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_TransformOperation.h | |
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_TransformOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_TransformOperation.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_TransformOperation.h b/source/blender/compositor/operations/COM_TransformOperation.h index 3c5584a1bea..5c646b215f2 100644 --- a/source/blender/compositor/operations/COM_TransformOperation.h +++ b/source/blender/compositor/operations/COM_TransformOperation.h @@ -35,9 +35,9 @@ class TransformOperation : public MultiThreadedOperation { int translate_x_; int translate_y_; float scale_; - rcti scale_canvas_; - rcti rotate_canvas_; - rcti translate_canvas_; + rcti scale_canvas_ = COM_AREA_NONE; + rcti rotate_canvas_ = COM_AREA_NONE; + rcti translate_canvas_ = COM_AREA_NONE; /* Set variables. */ PixelSampler sampler_; |