From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id B834044B49 for ; Fri, 19 Sep 2025 23:53:33 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'9ndgg0BtYSfCWhW6xrLdgkC9xga6u+lEL8qJPr6UKgY=', expected b'dix5QbsrTF88LfzV4QA0GrKV1PzYFHGud15KeM4GGEI=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1758326007; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=9ndgg0BtYSfCWhW6xrLdgkC9xga6u+lEL8qJPr6UKgY=; b=V7h8G6Qk11F0ygH/YjxYl7PPRiOx7dzdIix7kxtuKOSFxu4qErXVzzAOSno6Hy54eiSYB ooiA7+T/AUm+akMS2md09Qyc43r8NkqZCsbHGvbIiWhXDp0vgqPF+5nH4wC2aS/rHESihkI 8TyY99SVXDWaFmBFX6PwDYvdP1NeMMvfb69rkNTBTTVGYpgi+3fP0WZkgXQOfGKZVefkGcU J0EiksOxtFNMYIJTgoQyxXB6reDLJUdS9S1Vc2tzx+NnQnsQCRnZ5UhLrtnZssy5z/J76Ix ftj6IgbHxRdihk4KPTVs65dZDIPusTTKlYDBEz3S3VNDCg9MXatBMRc5GULA== Received: from [172.19.0.4] (unknown [172.19.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id E162E68EB02; Sat, 20 Sep 2025 02:53:27 +0300 (EEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1758326006; b=qg/zhdD0KVaDwH14+E1Ta3gOfv8fftxTj2YHi1qgoqYQK8RJpuagzepcpuJVV9t3VKlz0 QwzTqdeY9c2c/IafZmYpdqeVaFlTFLqI7r1RakOXLs+aW5IwarfmE3EtAty0r6N0qudoozf OnwnXU97oYV4p8TS3VT40Nb51cW5/T7ZnVEPmZyGRpafxdtxmfPlbRFfobZ6hPVCzDCBVMD dt846JXoWb0FvVEhNMCff2Ki/7HbaxjoUzAdJBvOvaHomqKyIGinQFNCjFBER4djR61vt4x wF+nKrD7eNkgdkLzFMhV4Z+HupHKhoSBKKsm168f46NZQzj+yMye1SIVtB9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1758326006; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=WldXt8mkA4hAVbEXLOnB6Et7wquCINZYPsx8c5CGo24=; b=itsSA0SOjmJ5DyAG6s0nX63SQ32m4ZLYZSxQGwsU0jCQ0GohbD6lnHexsRsxxQeZO5QNt TNmp/7EbVtC4HT4Km1STK+Or70XEbR25ubqJ6n9C5b2//j/frJx4j8/sIIdikEUfW3ngr8u hDZRADdyLkOm4Undp5IkrfOgrE3/qTxXFiqNVJMuMEPUExZH4we33Oilex/hP7JXBsTA6oF Vap9dt5iDFvUaSd27NKnUvu7ai+5M34Cnum7fE3INYyj7IBmRx2+hmEmV66gj+s0gxOUMkb uBE2JKhYHGX9p77T7zuUaNZFnpoaHVj6l/L3w9X6Y3QVMva8KDw1wrbTUbjw== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1758325993; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=dix5QbsrTF88LfzV4QA0GrKV1PzYFHGud15KeM4GGEI=; b=XzFce773/r1UWh/JepA3cKIe83W0ClujC3r87uwQFPcvNkIeBOsd8hp5JyNthFk9CaTwP jJ13FnHAu5eyoCpaz5/yALw9auuTOFCw4Nu2/lChF+ax5KYAXxsr2o9dNOiaqzmeVEyCTp4 JstLQ7XNSg/iwDpIBUUHGjqprta4f7j6h2B+BBC/xJeqlIRzRSnfOnGW0+jjF1M60z1SogW gsTugG4tGLbSnyru7vafePhNpvUfkh81ORwaUaU0u+vKNiOV1o3RxoFU3lye1Fk6R9XITBX 2IGM9gs5fXEmEx/sETRO47Cfy2PBVFFG0DqvjodY5Xeeag8TDanpPquIp0+Q== Received: from ed19c606a818 (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 4C21668EAC7 for ; Sat, 20 Sep 2025 02:53:13 +0300 (EEST) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Fri, 19 Sep 2025 23:53:12 -0000 Message-ID: <175832599367.25.8447716410471981242@463a07221176> Message-ID-Hash: RMCZVWG5XFJRP5KSZV6XA53RMBTH6EQX X-Message-ID-Hash: RMCZVWG5XFJRP5KSZV6XA53RMBTH6EQX X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH] avformat/dhav: Fix off by length of read element error (PR #20559) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: michaelni via ffmpeg-devel Cc: michaelni Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #20559 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20559 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20559.patch Fixes: out of array read Fixes: BIGSLEEP-445383648 Fixes: crash_input_1/2/3.dhav Found-by: Google Big Sleep Signed-off-by: Michael Niedermayer >>From e66d02f3c566e42984ad6862bdcbe2a6796ec2a1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 20 Sep 2025 01:25:51 +0200 Subject: [PATCH] avformat/dhav: Fix off by length of read element error Fixes: out of array read Fixes: BIGSLEEP-445383648 Fixes: crash_input_1/2/3.dhav Found-by: Google Big Sleep Signed-off-by: Michael Niedermayer --- libavformat/dhav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dhav.c b/libavformat/dhav.c index 21c9c530d6..105a987aa3 100644 --- a/libavformat/dhav.c +++ b/libavformat/dhav.c @@ -279,7 +279,7 @@ static int64_t get_duration(AVFormatContext *s) } } - if (pos < buffer_pos || pos + 16 > buffer_pos + buffer_size) + if (pos < buffer_pos || pos + 20 > buffer_pos + buffer_size) goto fail; date = AV_RL32(buffer + (pos - buffer_pos) + 16); -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org