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 8D09D492ED for ; Wed, 8 May 2024 02:39:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7836B68D553; Wed, 8 May 2024 05:39:36 +0300 (EEST) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5C93A68D239 for ; Wed, 8 May 2024 05:39:27 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 919DAFF802 for ; Wed, 8 May 2024 02:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1715135966; 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: in-reply-to:in-reply-to:references:references; bh=bhr5sEGoxE5ljZ2Q2cgLbAC5NIV0OK6kz5Or32R+F1U=; b=d5GTvStxpDDJi8PXGLwfHzUjNFb8fkY/kQa6GnIFDRfDxPe8muMTkNglVjLQ27PqDfMn1+ BEf3n+WAgYgIecEMoKXcx+/hlPCWIljz9LAqE+NXKU5cqwxILtIf0RTBxiUYX5MJD0vGJW oHjbTfZx9sD2K2tA6LbbzaFpeC83pLeRpfPULbC/wKnV0X22aCJT56Zm5QVV/PFDBzJ8Ih 20MI5zfDdXiIFow6TLnz6uAHXGtY2SB7+dbbNCwVY362Uc7Nugkgks8EiEqUaoxbypY4aX 1oAz5kpUtH+4KL5bfFRDC/ewnSwJtJ9qXTtWOeyk6zeX3LvlYfoOpsUa/wVj5A== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Wed, 8 May 2024 04:39:23 +0200 Message-ID: <20240508023923.28209-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240508023923.28209-1-michael@niedermayer.cc> References: <20240508023923.28209-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 3/3] avformat/img2dec: assert no pipe on ts_from_file 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: Help coverity with CID500302 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavformat/img2dec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index a40675d4341..6220003fb4d 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -25,6 +25,7 @@ #define _DEFAULT_SOURCE #define _BSD_SOURCE #include +#include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/log.h" #include "libavutil/mem.h" @@ -504,6 +505,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt) pkt->flags |= AV_PKT_FLAG_KEY; if (s->ts_from_file) { struct stat img_stat; + av_assert0(!s->is_pipe); if (stat(filename, &img_stat)) { res = AVERROR(EIO); goto fail; -- 2.43.2 _______________________________________________ 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".