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 B260C40A4C for ; Sat, 25 Dec 2021 14:12:05 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C3D3E68B0EB; Sat, 25 Dec 2021 16:12:02 +0200 (EET) Received: from smtpbg587.qq.com (smtpbg128.qq.com [106.55.201.39]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 685CC68AECF for ; Sat, 25 Dec 2021 16:11:55 +0200 (EET) X-QQ-mid: bizesmtp31t1640441438to6phd3a Received: from localhost (unknown [114.245.24.111]) by esmtp6.qq.com (ESMTP) with id ; Sat, 25 Dec 2021 22:10:38 +0800 (CST) X-QQ-SSF: 01100000002000Z0Z000000A0020000 X-QQ-FEAT: urA2/mOlKa9KbcPrk32yGxLpYO0ZvKf/MAkVu9U7Xg8Jz98x+07gX+FLFWNZz ixYvAWiEepOh6R/F0b7xGWsSeaKSLyZKHVTAmIxhmn0jteiTZQDxhjRlFQg3a/iKTexNRAo St8M8ePuRxrvOPVRHgL1doiVolHum5lAX5fRjYi1dNqyIcvBD4OyjpzrYjBJay4YCaZCSW3 GuE6HGL0ReRe9r5h/Ba9n7VvUjngbwmZhC3p9lVpWuihy1Pxpc0FF5BKn011PLbDR23iuWr +ARaU7wLW+UIIA6T+l+T8eex0zJWK8LM/wVScK3HYhFcP8r1rf1/QJl+1LMYDuNPas/HAJY L4Tap/0dLdP5C3SbySQL9pm2JZFFw== X-QQ-GoodBg: 0 X-QQ-CSender: lq@chinaffmpeg.org From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Sat, 25 Dec 2021 22:10:36 +0800 Message-Id: <20211225141036.46998-1-liuqi05@kuaishou.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgspam:qybgspam5 Subject: [FFmpeg-devel] [PATCH] avformat/fitsdec: remove always true condition 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 Cc: Steven Liu 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: From: Steven Liu Because the AVBPrint->len is unsigned, so it should alway true, the AVBPrint->len < INT64_MAX is unneccessary condition. Signed-off-by: Steven Liu --- libavformat/fitsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/fitsdec.c b/libavformat/fitsdec.c index 54412c60ff..6477c5ab1f 100644 --- a/libavformat/fitsdec.c +++ b/libavformat/fitsdec.c @@ -174,7 +174,7 @@ static int fits_read_packet(AVFormatContext *s, AVPacket *pkt) goto fail; } - av_assert0(avbuf.len <= INT64_MAX && size <= INT64_MAX); + av_assert0(size <= INT64_MAX); if (avbuf.len + size > INT_MAX - 80) { ret = AVERROR_INVALIDDATA; goto fail; -- 2.29.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".