From e7ae9f493aaa004caf3627489752139f177a807b Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 29 Nov 2021 19:23:43 +0100 Subject: 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 --- source/blender/compositor/operations/COM_TransformOperation.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/compositor/operations/COM_TransformOperation.cc') diff --git a/source/blender/compositor/operations/COM_TransformOperation.cc b/source/blender/compositor/operations/COM_TransformOperation.cc index be9bb32e7f0..5b8cd35cb26 100644 --- a/source/blender/compositor/operations/COM_TransformOperation.cc +++ b/source/blender/compositor/operations/COM_TransformOperation.cc @@ -126,7 +126,7 @@ void TransformOperation::determine_canvas(const rcti &preferred_area, rcti &r_ar get_input_socket(IMAGE_INPUT_INDEX)->determine_canvas(preferred_area, r_area); if (image_determined) { rcti image_canvas = r_area; - rcti unused; + rcti unused = COM_AREA_NONE; get_input_socket(X_INPUT_INDEX)->determine_canvas(image_canvas, unused); get_input_socket(Y_INPUT_INDEX)->determine_canvas(image_canvas, unused); get_input_socket(DEGREE_INPUT_INDEX)->determine_canvas(image_canvas, unused); -- cgit v1.2.3