From patchwork Tue Oct 13 08:17:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yigit Uyan X-Patchwork-Id: 22906 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 13186449FF0 for ; Tue, 13 Oct 2020 11:16:29 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E38C768BAEC; Tue, 13 Oct 2020 11:16:28 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from 13.mo3.mail-out.ovh.net (13.mo3.mail-out.ovh.net [188.165.33.202]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 208F168B9E6 for ; Tue, 13 Oct 2020 11:16:22 +0300 (EEST) Received: from player793.ha.ovh.net (unknown [10.108.16.63]) by mo3.mail-out.ovh.net (Postfix) with ESMTP id 323742675E3 for ; Tue, 13 Oct 2020 10:16:21 +0200 (CEST) Received: from yigituyan.com (c-98-33-101-221.hsd1.ca.comcast.net [98.33.101.221]) (Authenticated sender: git@yigituyan.com) by player793.ha.ovh.net (Postfix) with ESMTPSA id 29CE3171D1C13; Tue, 13 Oct 2020 08:16:18 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-96R001f0dfdd12-6f31-4f1f-aa1b-9fcdb5dfde86, B45932719832D274FB1B75871486D7D756C4ED87) smtp.auth=git@yigituyan.com From: Yigit Uyan To: ffmpeg-devel@ffmpeg.org Date: Tue, 13 Oct 2020 01:17:12 -0700 Message-Id: <20201013081712.1969-1-git@yigituyan.com> X-Mailer: git-send-email 2.24.1.windows.2 MIME-Version: 1.0 X-Ovh-Tracer-Id: 7085288116923995325 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedujedrheelgddtvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpegjihhgihhtucgfhigrnhcuoehgihhtseihihhgihhtuhihrghnrdgtohhmqeenucggtffrrghtthgvrhhnpeegueejtddutdetffegjeeggeeghedttefgieevvefhgfduudeuveeiheeugeegleenucfkpheptddrtddrtddrtddpleekrdeffedruddtuddrvddvudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejleefrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepghhitheshihighhithhuhigrnhdrtghomhdprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg Subject: [FFmpeg-devel] [PATCH] Preventing Buffer Overflow for RTSP Links Increasing the buffer size of control uri, used when storing the input argument RTSP link. Following the Web URI standards, lengths of RTSP links can extend beyond 1k characters. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: Yigit Uyan Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavformat/rtsp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 54a9a30c16..2b37f5b49f 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -315,7 +315,7 @@ typedef struct RTSPState { /** some MS RTSP streams contain a URL in the SDP that we need to use * for all subsequent RTSP requests, rather than the input URI; in * other cases, this is a copy of AVFormatContext->filename. */ - char control_uri[1024]; + char control_uri[2048]; /** The following are used for parsing raw mpegts in udp */ //@{