From d41c18b2836397efb85c947ccbf8e892219b35df Mon Sep 17 00:00:00 2001 From: Nils Philippsen <nils@redhat.com> Date: Wed, 6 Apr 2011 10:44:49 +0200 Subject: [PATCH] patch: hstack Squashed commit of the following: commit fa348bdc3d62bfc4b4b296277799433d2c5d98f3 Author: Mukund Sivaraman <muks@banu.com> Date: Tue Apr 5 00:58:50 2011 +0530 Bug #633969: Check if aux_rect is NULL before dereferencing (cherry picked from commit 742446507e819755bd3f44e2d47b157f8cd19ab2) --- operations/workshop/hstack.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/operations/workshop/hstack.c b/operations/workshop/hstack.c index a8a2f59..084336c 100644 --- a/operations/workshop/hstack.c +++ b/operations/workshop/hstack.c @@ -46,12 +46,12 @@ get_bounding_box (GeglOperation *operation) GeglRectangle *aux_rect = gegl_operation_source_get_bounding_box (operation, "aux"); - if (!in_rect) + if (!in_rect || !aux_rect) return result; result = *in_rect; if (result.width != 0 && - result.height != 0) + result.height != 0) { result.width += aux_rect->width; if (aux_rect->height > result.height) -- 1.7.4.2