Message ID | 20240720005241.726089-3-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 f2csp894163vqm; Fri, 19 Jul 2024 17:53:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU+KD0PMPWxHdKZyZaK1lL8qLX/NKWmsnmG2JJhc0leIUkIOme/VnolYW/2qDkGnmfvIulMzmgbMTdU6FckD7i8ZZ6dguXPVuwM3g== X-Google-Smtp-Source: AGHT+IEZH2bNiIL7E+k8pV5c0UDGN66VyPbGUXlzS9H/V4xP6F3iNUNdoCktwNdEqD3h83qJzdfz X-Received: by 2002:a2e:9813:0:b0:2ec:1ce8:9a7d with SMTP id 38308e7fff4ca-2ef16793da7mr7295331fa.4.1721436795237; Fri, 19 Jul 2024 17:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721436795; cv=none; d=google.com; s=arc-20160816; b=OeVdvRNjy914AwM3liCIAbPldlOdjrcUh6QdCjjBDQ28tYBJJYSGb4QjAWvgCSgBd5 KrBSoFBrpooWbyvPwCIAsLJxxKeMzfzovUyS2TO6AkplaS1pBwK5VKPqzzgtbIrEvxDT J+7Cuify6rwZUovoMUrpo2TiGe5gq8wHg27m/8XfuaiIs1luvJC3++qsv/2+5G4qJtd9 UrUv275aY2f+5783271YXQ8lQtwrg8BmLn0KoJbpcLmPAgdS3kM4YhOnAiQpD+9D9sVe qzNpUN2WcVUiWxAb8cVJLnEeRHggbeEWKsUtAMrg4DZ6j8NCQ1p7iZNkSKpEvmdtzDVK nQZw== 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=x5So5tpXDKFjd3NVyJxXtAjwUu9e6PqBvml9+QAoJv4=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=Fjozlb3irGsVHIhFlMAxLuHGpnabdbZBLl01DQp0qZyofhlVnin1J6JeEaIBqtKJ5U +JqW/xu0dGU4wGwaYQ0t7eEP9lmWsOdEOaeZLQqIECE8iufgX8dYa8pvNeiEw4lhcXzA ay2kTmRZ9puCDot0yUon7PNE2uoUqPXLyXdZ9R3Jpe/PguXt0e2NNcCxHQbj7LWW+15T FJJcqW8cXo2xJ03wD9Wh3Fukv11OYa1urORMvGdBmG83SLgfZO3RzWVpqzIDPMm6wBzj 3CkoA79RnrC7XD2KCDRccXyHkiyj4Bb63GpFc942gbW6HE2ijt+19Qxg1E7A5c9ZhTLE tzPQ==; 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=oedibpPj; 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 38308e7fff4ca-2ef1d80e75esi905771fa.306.2024.07.19.17.53.14; Fri, 19 Jul 2024 17:53:15 -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=oedibpPj; 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 E5A1968D960; Sat, 20 Jul 2024 03:52:53 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F113A68D88C for <ffmpeg-devel@ffmpeg.org>; Sat, 20 Jul 2024 03:52:44 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 4FE5F40004 for <ffmpeg-devel@ffmpeg.org>; Sat, 20 Jul 2024 00:52:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1721436764; 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=XHCOnrhRcEy5RjFehPw/UQGPgdBIKzjkkO52mkVicRE=; b=oedibpPjpSazTa29qqkMkNL7uguXymnECf+8koRaxACjtJzP7cc02Sw4spqDXqJ7cZaNv8 BTaKkJPk29EV4MG7AAzTY+74MeX73vj+9f2R51OnsJnYDPkearhU+Fc1ysrbxIXlvkpuUZ 58y7N+VrVNSZtb+viM/iaM1x0ErQrikyLv9yguT611lRs1/45ercFB1nSEiuenx9o8CT3m nLLl1/FPqpxyoXCi9F1KjPUvXnMRhI00WXc3Y7odf9AM6AoaxUp5NEJ/nDs3CGEHimankn jDSRvcUsS2p/I067ud1kAlUTeVk1ERo1Rugsqqh47bKsfJmzJ0L3DW2/vy+KAw== From: Michael Niedermayer <michael@niedermayer.cc> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Date: Sat, 20 Jul 2024 02:52:33 +0200 Message-ID: <20240720005241.726089-3-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 03/11] avcodec/hevc/hevcdec: avoid signed shifts with lt_idx_sps 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: mAYirAvw0Tj/ |
Series |
[FFmpeg-devel,01/11] avcodec/alsdec: Clear shift_value
|
expand
|
diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index 0e4b26dad3b..7e0db79d16b 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -292,7 +292,7 @@ static int decode_lt_rps(const HEVCSPS *sps, LongTermRPS *rps, lt_idx_sps = get_bits(gb, av_ceil_log2(sps->num_long_term_ref_pics_sps)); rps->poc[i] = sps->lt_ref_pic_poc_lsb_sps[lt_idx_sps]; - rps->used[i] = !!(sps->used_by_curr_pic_lt & (1 << lt_idx_sps)); + rps->used[i] = !!(sps->used_by_curr_pic_lt & (1U << lt_idx_sps)); } else { rps->poc[i] = get_bits(gb, sps->log2_max_poc_lsb); rps->used[i] = get_bits1(gb);
Fixes: left shift of 1 by 31 places cannot be represented in type 'int' Fixes: 70122/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5172200613675008 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/hevc/hevcdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)