Message ID | 20240711233417.1896879-9-michael@niedermayer.cc |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:2298:b0:482:c625:d099 with SMTP id fp24csp489444vqb; Thu, 11 Jul 2024 16:44:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVxUk7RyIfVSOsEA/0WjClVrtz2Zp7oIkGCiaAtO1iN5OGhPpP3zijSpKgEWjIASOonvfhLgmSDg9MFvxIrajr6DkS7fIGerR2mSQ== X-Google-Smtp-Source: AGHT+IF6s18O0XfmuuiXYZ1/lYy9Q5Bkf8seNCFGokbrtlLo2MBxQjvbf7hHb1334W2TYEl13D1g X-Received: by 2002:a17:907:9687:b0:a79:81a4:faff with SMTP id a640c23a62f3a-a7981a4fd08mr493565766b.66.1720741456719; Thu, 11 Jul 2024 16:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720741456; cv=none; d=google.com; s=arc-20160816; b=rzfNQf0jqzpUMicVGZ/UJqfJ5lfKyhcgIDO6muLxOh9VLZI5BfngQSuXWGOXzdUcNw 49RTPlDYR58k2/Zh7zTRFVpRs58Y/1kRKXu0d7c9FWsDjS0/LYdzy4w0Kr446F/D1cZL LbC9WnNK4qXMkMEp0VHGjx5loZ8KeFXSV/jPghDQDLkczLTGCw8ugjbwFnIb3RptGPBc a/lL+n2x5dakhK5r2Nwt6UsTdt6f0aFqzcxwV0zLecHs7TBN/Z8fxeOsNOoVrAVXRPIY IIr+7xQVfkodxJaqadBcJd+WSd6PzM/3cUMSk/39OCLx1QFCoi6IIv9FHSHbxqLWKJ9s PFHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding: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=CSVHzknusIpcrOoHvI7i38p5a8PrbSbnlSNn3x5MgF8=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=EdTqpYZyK4jI9apR4mmsfXFWiL4018RkkacdtHldVaZv8FBMu2bF+VUk/LDSIjVDdZ ON9AT72Lw5B6SCHC8dl07jbfLQlg40cp6jYZZajob0HvK0bFFOingEXe/3MNBLP1DIqn rk3vUEoKtJPECcyTRQcW0/B7e8FIkp4i6C3+vuniXwzFleNkUqZIQeu/U4qqe9/Rp7Fj FmwDkgjjk/zswWCoRQ0u3em68vCIY5zSGGUI7YeGjEvTvqvm5yGT8Rcdgj16IVDQwy6R 1v7DkKSOAn0Enj0zanfSb4y2vw/XsORV+sHMCm5EUaZlknoGcVKyMTApeHT28YjcrxqQ GBbQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b=MqNlNgye; 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 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 a640c23a62f3a-a780ab2cd0bsi345717966b.786.2024.07.11.16.44.16; Thu, 11 Jul 2024 16:44:16 -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=@niedermayer.cc header.s=gm1 header.b=MqNlNgye; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7574068DC04; Fri, 12 Jul 2024 02:34:42 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DB52568DB54 for <ffmpeg-devel@ffmpeg.org>; Fri, 12 Jul 2024 02:34:25 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 23571240002 for <ffmpeg-devel@ffmpeg.org>; Thu, 11 Jul 2024 23:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1720740865; 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=AwxcsND5454pPX8Rs1dqys6orOb0Bso+w+x85x7EWfg=; b=MqNlNgyefdOpqqr79TZrLD6RXKlV0K6+LqTm7e75bxunnD0k27jWIK36aCuhSEn87xQ8CS TYS+5ERJcMhwHsMulvSZKiia0aijToCKvveMXVXWVXGZKcMNMkqCcu1JZGO0t9IKEDDPSO o8qFFy0HlO1j53uacOMVYadEE/l70ug4IEncXrTR0/C0jcRXZy0JVn+hdk+EORTZxjwP4a ReNmpzNfx3nHaSYXVCps4PkMJhW5k7/ptRbiQmP4F0p7T20p8dPQ5ZM95gPM9OIuMoJVvC JoS8i8lZbG0U2rY73lPK5vktHWwoKYPJ92eXj0TEbep1KjJphCHyPccJb+nCFA== From: Michael Niedermayer <michael@niedermayer.cc> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Date: Fri, 12 Jul 2024 01:34:03 +0200 Message-ID: <20240711233417.1896879-9-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240711233417.1896879-1-michael@niedermayer.cc> References: <20240711233417.1896879-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 09/22] avformat/mp3dec: Check header_filesize 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> 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: VJxhAOexpyhz |
Series |
[FFmpeg-devel,01/22] avformat/asfdec_o: Check size of index object
|
expand
|
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index 6443b80596c..0029ba63aa3 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -585,7 +585,7 @@ static int mp3_seek(AVFormatContext *s, int stream_index, int64_t timestamp, if (best_pos < 0) return best_pos; - if (mp3->is_cbr && ie == &ie1 && mp3->frames) { + if (mp3->is_cbr && ie == &ie1 && mp3->frames && mp3->header_filesize > 0) { int frame_duration = av_rescale(st->duration, 1, mp3->frames); ie1.timestamp = frame_duration * av_rescale(best_pos - si->data_offset, mp3->frames, mp3->header_filesize); }
Fixes: CID1608714 Division or modulo by float zero Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavformat/mp3dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)