Message ID | 20241007230505.27623-11-marth64@proxyid.net |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:bc50:0:b0:48e:c0f8:d0de with SMTP id m16csp47165vqy; Mon, 7 Oct 2024 16:16:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUf14tLNp97uxmlxmIvrfU/NwW1tR/h4eTulmEP8deYscI9GLFLdd5LM3Za9Z6xN8uxrN3Pnw1urSOqAfmrxcEG@gmail.com X-Google-Smtp-Source: AGHT+IE9UvJFgWP7UB1Hb+OlrPHz3cIRyml7e4F7gNabVYegSgjBWw0KLiSptCEnL9e6BsS3n2vN X-Received: by 2002:a05:6512:10c6:b0:535:681d:34b6 with SMTP id 2adb3069b0e04-539ab9c7041mr1869591e87.10.1728342966536; Mon, 07 Oct 2024 16:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728342966; cv=none; d=google.com; s=arc-20240605; b=CLy7pby8z1xla8cqpn8ztPveE5mUi1JTGL5sBblq8qRzMf5V15vaxAMZpXGkfiHm3e jSEL08F1+bwnOkLdV26l3/nao6wWOa0MVVtm0q493PZPGN1T+TUS0rtLaMJ7ojGFCSji AzuLVxDe7qZTI11nBEKYQtl9nmD1UrOV+giRzTZuBXpzirDuVz0j/Z8YRjt0rtxDqc+g EuOffcaf4lqNs8pKPA/b4Dcu3hGJSlNIkl7XkGk2xybkANTVCSD6dhMp8qULScNoqRmz fGox4QV7zXwz40PzycMIQe2rezvEu77Vsy7QKmW4BB/mASOnnP49NFg0D7kmxTsSsWn6 ruqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=Smn51A2xIOmV/vnY6NkVpTr3IIHEQlQfDqXyCibfEKQ=; fh=PlWMzmI9LD2qGS7ipLrQl8z0iaQTLQLHzoGuXcBzpCg=; b=CrWQe0xwqsS3mjC1i2dHfxoD8HYbUHJUp+nBXeBSNyJKOC5btGWnF0FeJouNsh2u1E MQ2Wrl/eSgCTrEB6/BZRNt1rIYdRIfVpV7Ks71S3ZpestqYKHas7t4SB3jwFMA40r+Sq McCiHVHsW0ZqIVSOydVkadjsrFckDVYsLYrNbSoViglQDNlM/wbO3gProq7r7uR6D/Ur RwsVyQJAetezC54YNPdUqZR9us7R+uS+OL9gXc3ZEYRkebEHBiFRNGyNXU4o9ADvlJfp YwkP5ZLErmLY075rm1LIrWY4IPnIjodJ6ibBWziXFatfAl3bZIURwlfXGucCTzAlffQa k4lA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@proxyid.net header.s=google header.b="jR/bajYJ"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dara=fail header.i=@gmail.com Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 2adb3069b0e04-539aff1f48csi2186543e87.264.2024.10.07.16.16.06; Mon, 07 Oct 2024 16:16:06 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@proxyid.net header.s=google header.b="jR/bajYJ"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dara=fail header.i=@gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2F4B868DDF1; Tue, 8 Oct 2024 02:05:33 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f225.google.com (mail-qk1-f225.google.com [209.85.222.225]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9282568DD9E for <ffmpeg-devel@ffmpeg.org>; Tue, 8 Oct 2024 02:05:17 +0300 (EEST) Received: by mail-qk1-f225.google.com with SMTP id af79cd13be357-7afc5925679so1454085a.3 for <ffmpeg-devel@ffmpeg.org>; Mon, 07 Oct 2024 16:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proxyid.net; s=google; t=1728342316; x=1728947116; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=p2p+18kvXQyy85on5R3jaysQzIWtCQXlFVSSb7GL43M=; b=jR/bajYJQJ7u4Ai/yyYx0gubv7S+HfzmpgEpnYoXrXnI7SRGQ/je0SFGddlQsILggx qTPuHABB7Z8umH6BjST6oewF6GR63OlV1dTOToHUwVdd/VOBaWxdT6GdPCSVXUf58vUf uXpUrKeS6dPA1nUqDmdiI4QxmjGhyT5c2ND9tGJaH6Mi4N16Jz2vEw5PsJ+I27ALKp03 R6MevW8Q76s11BDYsb1FM2Rm5BvnYjB/DOncxpKPNVo+ghEjgL49iPMUlMS8P1rvROzv fkm5lMDP127WTM2lx11xwSesfnlRHA9mnCw2SaVoAzG3uvM19uML2UsUGpYlTDb8K0FM usYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728342316; x=1728947116; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p2p+18kvXQyy85on5R3jaysQzIWtCQXlFVSSb7GL43M=; b=qidnsWLOJYTgk9AJ46QI7yjPAJuL+kfM8CJDydj6bLhPSuvm1DLo/wUPtOKWhSBEW/ ctPQZWYLlDsED+9g606M/dyRrKseTPyV/CB5aIPBM4hYLZ0/kuAD4Bowo7hi6vl7EJuF blwXdSk6q6IQVOAlp2AUgNuYgDaBbZa8XHcdhNDYqk092Z17sl/SmeC3zjS6BVYKT5xR q15162ASCsddUnE3xTXVbYfSBZ8J3pzGaVjItZEfr8ZRXv1l9TsixMFCp8xTysnoQ7qs yVTdlJeQNHt9Y4MrmH8+cTSMNkfbbP8RU5uzqtpdGgHG9Q8pMlkvBdmB23hgwNtWrFxR S/Ew== X-Gm-Message-State: AOJu0YzMGQjrXWOkACSh0NeXL1n7xvsb8Dlb2jVkqLF2EtbHtyYGJCcj ZE22hfNRVxPpNZU7D5yiAXWx23y7mWf5nkn+xwYKyAhLj6bNFCM2pqxwUS1zOSdpw5gPgHQTi6c Z5hdrh0o4lAMq3YHYIevirDZ5bVljGPDEwew4A5tc X-Received: by 2002:a05:6214:3289:b0:6cb:6109:d65c with SMTP id 6a1803df08f44-6cb9a45a85bmr180376796d6.33.1728342316400; Mon, 07 Oct 2024 16:05:16 -0700 (PDT) Received: from localhost.localdomain (c-69-245-177-215.hsd1.il.comcast.net. [69.245.177.215]) by smtp-relay.gmail.com with ESMTPS id 6a1803df08f44-6cba475c5e9sm2106236d6.65.2024.10.07.16.05.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 07 Oct 2024 16:05:16 -0700 (PDT) X-Relaying-Domain: proxyid.net From: Marth64 <marth64@proxyid.net> To: ffmpeg-devel@ffmpeg.org Date: Mon, 7 Oct 2024 18:04:58 -0500 Message-Id: <20241007230505.27623-11-marth64@proxyid.net> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20241007230505.27623-1-marth64@proxyid.net> References: <20241007230505.27623-1-marth64@proxyid.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 10/17] avformat/dvdvideodec: check the length of a NAV packet when reading titles X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Marth64 <marth64@proxyid.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: bvze+r6FgxnA |
Series |
avformat/dvdvideodec: bugfixes and menu chapter markers
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | fail | Make failed |
diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c index 726c45601f..f7c7ba5a3b 100644 --- a/libavformat/dvdvideodec.c +++ b/libavformat/dvdvideodec.c @@ -740,6 +740,13 @@ static int dvdvideo_play_next_ps_block(AVFormatContext *s, DVDVideoPlaybackState return AVERROR_EOF; } + if (nav_len != DVDVIDEO_BLOCK_SIZE) { + av_log(s, AV_LOG_ERROR, "Invalid NAV packet size (expected=%d actual=%d)\n", + DVDVIDEO_BLOCK_SIZE, nav_len); + + return AVERROR_INVALIDDATA; + } + e_pci = dvdnav_get_current_nav_pci(state->dvdnav); e_dsi = dvdnav_get_current_nav_dsi(state->dvdnav);
Some discs present titles with bogus NAV packets. We apply this check for menus and for title MPEG blocks, but we should also apply it for NAV packets during title demuxing. Signed-off-by: Marth64 <marth64@proxyid.net> --- libavformat/dvdvideodec.c | 7 +++++++ 1 file changed, 7 insertions(+)