From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id CBC974C278 for ; Thu, 31 Jul 2025 08:17:13 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 0823C68CC5A; Thu, 31 Jul 2025 11:17:08 +0300 (EEST) Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 69E4168C9EF for ; Thu, 31 Jul 2025 11:17:01 +0300 (EEST) Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4bt24C0HlPz9sq0; Thu, 31 Jul 2025 10:16:59 +0200 (CEST) Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of ffmpeg@gyani.pro designates 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=ffmpeg@gyani.pro Message-ID: <848ecb60-a67c-4e63-87e1-7f6a6590987c@gyani.pro> Date: Thu, 31 Jul 2025 13:46:56 +0530 MIME-Version: 1.0 To: 1+1=10 , FFmpeg development discussions and patches References: <17547fea-4e8f-4ba2-b439-6a17139f70e5@gyani.pro> Content-Language: en-US From: Gyan Doshi In-Reply-To: X-Rspamd-Queue-Id: 4bt24C0HlPz9sq0 Subject: Re: [FFmpeg-devel] [PATCH 1/1] add option in file.c: pkt_size toset max_packet_size 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 2025-07-31 01:06 pm, 1+1=10 wrote: > If max_packet_size is -1, a crash will occur in the ffio_fdopen function due to malloc(-1), > but max_packet_size is initialized to 0 in the url_alloc_for_protocol function. > If it is not customized to -1, this situation should not occur. But your added option allows the user to set it to an invalid value. Rectify that. Regards, Gyan _______________________________________________ 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".