From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 67D5046BC7 for ; Wed, 4 Oct 2023 22:14:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4BF3268CB23; Thu, 5 Oct 2023 01:14:33 +0300 (EEST) Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 46D1E68CA1B for ; Thu, 5 Oct 2023 01:14:27 +0300 (EEST) Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-4180a14a6a7so421861cf.1 for ; Wed, 04 Oct 2023 15:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696457666; x=1697062466; darn=ffmpeg.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Q+mCPhhmoJ27naIumb9HBvjgAVXRg8uMrP57dG3a7ec=; b=b92coOYqIklR2/1o3COyg8jW4YlPLwIyAO5YThcwEzJg+xZKNYPda2SKGObzCDsFH1 VRuph0kprLY9IxuDRlblSal9kFb1ozIDz2Hmntdc8eW+nZ521lyZAggZfqAk7FmWUf5D QlDncpz9+DI+ZNiIq7J2C8gZWJbfdI9C46374bX80KqDgT0fyuG+n+GMI479q8azrkj5 HemTYbZm42bEwRSAe9DFHZqN4zDw6UJgoZx3Nn3I21gGKOvMnGNy5seQt8MV/kJY8kFV GOax6Thb8CVoY67D3hTH07pQ9EpDvIpASaTgfBZAwPzsDFvbSHzBO9IpDApbooXdSkee mZqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696457666; x=1697062466; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Q+mCPhhmoJ27naIumb9HBvjgAVXRg8uMrP57dG3a7ec=; b=skC+Z9R4CUqPF1ahFODPuoZDmdc5w+u7Y8ISdcTBJG+SHluDicNXpXWmU1b0AYhq77 h0KxR2Y+eX/mk8uL26LKxcefFVwLslH+gdLqIKbrU76QVS+38gFGUUMvb8ZIn0taUfSj 8dmnE83gxVb5uVZ83QuBBHSTJwAiMzSwOpn+uOvS7ehlSCjIwUsO5cUpoBXwgLGVdIv5 NejzNGmRJ9FJJIOoXtD71PVjPqY39YxwbH5LpfKbaKMsSvGMEJi35rGRFZ3+oNv8B2JJ 0forAYMMtP7QsNK+vfmhnbTQeEPZZxXgejMxJfMc+P/hzdLD/P7dPf4bh6Kcylkf6RFe mP1w== X-Gm-Message-State: AOJu0YwB+GAyG2ggMtkyuHtI4JheIaMIWrJrcSB7eCjURuRQ2BBkd7h7 UkOPfBmbfwD657UIbfciQISwI8VSuaturA== X-Google-Smtp-Source: AGHT+IE2hSXQ8FvYjC2DDPZ/8aUoaWOxj3/L10S3jGDFZhshFvYz7xWZxQ2C1LbA1HrPcj5I5mr23g== X-Received: by 2002:a05:620a:40d2:b0:773:a8d0:b326 with SMTP id g18-20020a05620a40d200b00773a8d0b326mr3862835qko.4.1696457665689; Wed, 04 Oct 2023 15:14:25 -0700 (PDT) Received: from [192.168.1.35] (c-68-56-149-176.hsd1.mi.comcast.net. [68.56.149.176]) by smtp.gmail.com with ESMTPSA id oo15-20020a05620a530f00b0077407e3d68asm38855qkn.111.2023.10.04.15.14.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Oct 2023 15:14:25 -0700 (PDT) Message-ID: Date: Wed, 4 Oct 2023 18:14:25 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US-large To: ffmpeg-devel@ffmpeg.org References: <20231003173825.4357-1-leo.izen@gmail.com> From: Leo Izen In-Reply-To: <20231003173825.4357-1-leo.izen@gmail.com> Subject: Re: [FFmpeg-devel] [PATCH] avcodec/jpegxl_parser: add some icc profile checks X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 10/3/23 13:38, Leo Izen wrote: > This patch will cause the parser to abort if it detects an icc profile > with an invalid size. This is particularly important if the icc profile > is entropy-encoded with zero bits per symbol, as it can prevent a > seemingly infinite loop during parsing. > > Fixes: infinite loop > Fixes: 62374/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer > -5551878085410816 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Reported-by: Michael Niedermayer > Signed-off-by: Leo Izen > --- > libavcodec/jpegxl_parser.c | 44 ++++++++++++++++++++++++++++++-------- > 1 file changed, 35 insertions(+), 9 deletions(-) > Will merge soon as it fixes a clusterfuzz case. - Leo Izen _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".