Message ID | 20240720005241.726089-11-michael@niedermayer.cc |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:a742:0:b0:482:c625:d099 with SMTP id f2csp896574vqm; Fri, 19 Jul 2024 18:01:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXyzu510PP9lM+WeUmo43XmlSzY2zZfeksp3IPqJXzQM3ZchHAEn5YOv+M+sFJZVqgEbH5vOWw7P38yZOj9RchO37cwIGJnR+1eKg== X-Google-Smtp-Source: AGHT+IGGlSV11KamvsoxCAuteRUeeZOCWgLd/e/zrFsuP4c2ztGcmDpTbQ1BHDDyaQOMOJQMNEF4 X-Received: by 2002:a05:6512:12d3:b0:52c:caf3:98ed with SMTP id 2adb3069b0e04-52ef8c1d7d2mr276764e87.24.1721437309668; Fri, 19 Jul 2024 18:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721437309; cv=none; d=google.com; s=arc-20160816; b=j+3lLu4vXGnq4y7+MWSnWkDIScdb4NSQf1iSo2uaec8q08jfXP2mHDR05AqdVU7wjZ 7oifZm9pRfkl0rn1yfH6XzkmBitKfyg667Z3zrCo3Ifs/lkd58u/QY+kiscT5ntdZFIO GH5GGMeHU1GY6Uimg68OpDJ+grmVqhLpo9KkLdzmFdeaFTyF7k2ibaZpW2Q9AH/C68ub GinVJGgbDq5XynqxbzUvuR6PCwoEUkGpcekqAyeeo5S/x9mTOVyf81Q4fY5sSGLcL+7o roVSs3Z1hkoS5BluJKX82F5Nz+JVAMNe7du929dPEmTHCOg5nlQDQ+irMEIPPdM1fcsW NL5w== 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=36QynFMQF8+/ij4wxvCzLC6IcLRbK98p9le8Q7slJHQ=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=mTx/HujuOC2HU0Q+fT4NZoeXCDuGHF2fXagzpzFZ+c9Sg2pGvm+zy6o9dYcqGljH6H q0QEzjXLs+JbHP+cLvv9tbNYgh3GokUmt2ivw/yJl76wmLaVktuM8bIiia7wFrQrkeLO PdDG3zgDQN/uwlOHDYXb/Ay/Je49oaikt878ABsmhP+l5WAFsLdrHoU/qKiFoY/PnL/d I0Tje09y1NK5TTTJ7LuYLgyxE3q7tiLEyfIiin0NdxM41H473cQmm74i2tft4fN9eKPW 97xDSJsb7jO4ww7pb9T7k+e2rGv3dkWBgZ0TzXI0IldEuZrRusdEiXHmfH6YjyY42/N1 fBWg==; 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=pVvISwpN; 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 2adb3069b0e04-52ef5543358si659536e87.393.2024.07.19.18.01.49; Fri, 19 Jul 2024 18:01:49 -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=pVvISwpN; 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 9CCD468DA96; Sat, 20 Jul 2024 03:52:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C7A2368D9A4 for <ffmpeg-devel@ffmpeg.org>; Sat, 20 Jul 2024 03:52:52 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id B4CAD60006 for <ffmpeg-devel@ffmpeg.org>; Sat, 20 Jul 2024 00:52:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1721436771; 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=5kUE4xTU5Eswhu5OK4MTn7vbU6BdZDpQOyHgF6oRfGU=; b=pVvISwpNn7zIHOHjw4Pn8n7JQmEdCN62YUKYiiWfXkJ4ntN9Wj4ebhvc6FYvNQXQT6rOOT bpaSYERakyiYbAiyfzrRFGJjGNABDVH/zg2ixYnldniLcBbVSxiMeb8sKxGsyif2WkmRx+ 9+/YWpTnm/dme+j4LD0GMh78+H7wGpnxjfpAGdPKbkq5OC/KaFP6Qcuj5AWEPxjTvV3rJg 81gkyPxr2cPzXg2VZw7b4JFMbiQUDjLWjH4AC+LZ+a9VCdib0eYqh1+psJZGof4OHzlhPQ p4pr+Ksr4CES61REDqrpEd2NR6Vfo4IZGoVucjbGsa/VVM8HXUVc/DNak+afUw== From: Michael Niedermayer <michael@niedermayer.cc> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Date: Sat, 20 Jul 2024 02:52:41 +0200 Message-ID: <20240720005241.726089-11-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240720005241.726089-1-michael@niedermayer.cc> References: <20240720005241.726089-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 11/11] avcodec/hdrenc: Allocate more space 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: 5MEAS3eJBlR+ |
Series |
[FFmpeg-devel,01/11] avcodec/alsdec: Clear shift_value
|
expand
|
diff --git a/libavcodec/hdrenc.c b/libavcodec/hdrenc.c index 20e42134bc8..a7bf36946db 100644 --- a/libavcodec/hdrenc.c +++ b/libavcodec/hdrenc.c @@ -124,7 +124,7 @@ static int hdr_encode_frame(AVCodecContext *avctx, AVPacket *pkt, uint8_t *buf; int ret; - packet_size = avctx->width * avctx->height * 4LL + 1024LL; + packet_size = avctx->height * 4LL + avctx->width * avctx->height * 8LL + 1024LL; if ((ret = ff_get_encode_buffer(avctx, pkt, packet_size, 0)) < 0) return ret;
This needs to be double checked or a checking way of writing should be used Fixes: out of array access Fixes: 70007/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HDR_fuzzer-5478704150020096 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/hdrenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)