From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 000D64B30A for ; Mon, 3 Jun 2024 19:45:01 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 53A3B68D62A; Mon, 3 Jun 2024 22:44:58 +0300 (EEST) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9571368D516 for ; Mon, 3 Jun 2024 22:44:51 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id C4C32C0003 for ; Mon, 3 Jun 2024 19:44:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1717443890; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Vh7xsknd2I5m/ffJlKuKW7t6X8D+3FdNByxwwZ1AIHg=; b=Q7g0UNpB75vwfY6se9X6hBjqEpN5fhHJXV01MmskCqh9yV33wcN9E5YzIeoVlv2VyfL7b0 WLBAQf4+tCuVFhTQHNEzCB5CZfbv9E6M8q3xdgnYUKE1YtIV4JaCdGzwKf4kTQ7E5PH4Qo gEBaQIDz8cGDg5o3g/WjtWxWuw0VscCWtt5wfuA+we2CX/wwq/vBnvQck/iL+KqiLkOfTo X+LOlshcOoq8t7yd7FrTzBlZB6CNKMigqFJYYn6Uzr1uqTEuQMZaPWpDYndbzLm8DFjBVq snLRqxara/Rby2mz3+dK4f4kVbATRNjtKZusG7KQqUg8ja9jxCxxiHUrqP8QLw== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 3 Jun 2024 21:44:50 +0200 Message-ID: <20240603194450.3439361-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH] avfilter/vf_rotate: Check ff_draw_init2() return value X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Fixes: NULL pointer dereference Fixes: 3_343 Found-by: De3mond Signed-off-by: Michael Niedermayer --- libavfilter/vf_rotate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_rotate.c b/libavfilter/vf_rotate.c index 3adde22c093..3e65f265527 100644 --- a/libavfilter/vf_rotate.c +++ b/libavfilter/vf_rotate.c @@ -288,7 +288,9 @@ static int config_props(AVFilterLink *outlink) double res; char *expr; - ff_draw_init2(&rot->draw, inlink->format, inlink->colorspace, inlink->color_range, 0); + ret = ff_draw_init2(&rot->draw, inlink->format, inlink->colorspace, inlink->color_range, 0); + if (ret < 0) + return ret; ff_draw_color(&rot->draw, &rot->color, rot->fillcolor); rot->hsub = pixdesc->log2_chroma_w; -- 2.45.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".