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 AB12642437 for ; Tue, 15 Mar 2022 22:45:48 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 246B668B13C; Wed, 16 Mar 2022 00:45:46 +0200 (EET) Received: from mail-oo1-f50.google.com (mail-oo1-f50.google.com [209.85.161.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 853D468803D for ; Wed, 16 Mar 2022 00:45:39 +0200 (EET) Received: by mail-oo1-f50.google.com with SMTP id j7-20020a4ad6c7000000b0031c690e4123so698974oot.11 for ; Tue, 15 Mar 2022 15:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=JIWLwI30SmniPrkwkCHwSi6u+MimqH1tJ9yaH4dvXhA=; b=RjhIsiNB3VVobUP01MNILrQOBCWT1I6N6l4N+W300xmDu5MhPLwNxiDZ8tbTbSUu3k XMLZ2g113a7nCB+EwqSLdW2+9dysUw7BBjEGGqrjYYIyUY7B9+hm61ounOXlgdRytyH3 wMQ6J4TV53chJxzzBKCstHsBGhLqf3ATb6wK/G13IrMvUBfsfGNtCq3C1VBoe3Znk7vV +dIQdFZrhv9iPJAXGSGGJ2Szp3+HsZUAJWH2E/aNL2olBW45f/8iqewORxvYsn0ghOGh bg5YRFSAmrUYBpvbeZH1piCh8uSiumb+Yn/aTSjPtWzFyCzCBEkMNtg9q9ghEunTcsPJ RClg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=JIWLwI30SmniPrkwkCHwSi6u+MimqH1tJ9yaH4dvXhA=; b=wXnkp6Rr4NvbTxrrInn4QjXcr6ELL1CYWKgH2u846LQJRoedA9FUrn0F5E4LeSLqle dRnKTQqbRaM502QKaWyLHycZUERcFLb9qvpyTT9+CNibXC/YfhvEA6IlM4uZAHQK20Z+ 5B3OOogSiKjYXXt1eSt1sho4oYyYHW6DjtAOskkl76qmxQjffluhq8mmvn6Y58JlJqXG Pz2JeM82Y2wCVAX0IFzYcclVkFVBPpYoeCbkP3AioIBAJDb+2qitJrcChyXxBZDUMcIV 8IPq9PwO5Gf+fhI2EKXPReL16Lk+bhObDtB9o97dQJza/yXCaqFzky54Zv/KijHIbpNc MG3g== X-Gm-Message-State: AOAM531T/LJzICCcCtMrxCwtONB6j+KCO2KReMI4Yw5lZwbxuzrhCNmn Niywh48TvtZhUEVncIhPrVCXnhvFGs28Lw== X-Google-Smtp-Source: ABdhPJz1rleUfU1Gn4StpVlp6khCJxbQKc9Z/aKwdVz9saJA+kCeyIl0SQvO9uO+aThBGwvI2lDduQ== X-Received: by 2002:a05:6870:4792:b0:da:b3f:3220 with SMTP id c18-20020a056870479200b000da0b3f3220mr2439790oaq.208.1647384337720; Tue, 15 Mar 2022 15:45:37 -0700 (PDT) Received: from [192.168.0.13] ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id 45-20020a9d08b0000000b005b2387fefb2sm112327otf.78.2022.03.15.15.45.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Mar 2022 15:45:37 -0700 (PDT) Message-ID: Date: Tue, 15 Mar 2022 19:45:36 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20220315223444.3449-1-michael@niedermayer.cc> From: James Almer In-Reply-To: <20220315223444.3449-1-michael@niedermayer.cc> Subject: Re: [FFmpeg-devel] [PATCH] tools/target_dec_fuzzer: Fix build failure from channels API 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 3/15/2022 7:34 PM, Michael Niedermayer wrote: > Regression since 2f8ccca2fa94ce256ff77baa18f462c1abd8d2cc and surrounding commits > > Signed-off-by: Michael Niedermayer > --- > tools/target_dec_fuzzer.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c > index eaa26b0e62..3bd1eff3ce 100644 > --- a/tools/target_dec_fuzzer.c > +++ b/tools/target_dec_fuzzer.c > @@ -47,6 +47,7 @@ > > #include "config.h" > #include "libavutil/avassert.h" > +#include "libavutil/avstring.h" Why? > #include "libavutil/cpu.h" > #include "libavutil/imgutils.h" > #include "libavutil/intreadwrite.h" > @@ -273,7 +274,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { > extradata_size = bytestream2_get_le32(&gbc); > > ctx->sample_rate = bytestream2_get_le32(&gbc) & 0x7FFFFFFF; > - ctx->ch_layout.channels = (unsigned)bytestream2_get_le32(&gbc) % FF_SANE_NB_CHANNELS; > + ctx->ch_layout.nb_channels = (unsigned)bytestream2_get_le32(&gbc) % FF_SANE_NB_CHANNELS; LGTM, sorry about the breakage. > ctx->block_align = bytestream2_get_le32(&gbc) & 0x7FFFFFFF; > ctx->codec_tag = bytestream2_get_le32(&gbc); > if (c->codec_tags) { _______________________________________________ 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".