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 2547449278 for ; Tue, 7 May 2024 14:36:19 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F0C0268D71A; Tue, 7 May 2024 17:36:16 +0300 (EEST) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 163A568AA8E for ; Tue, 7 May 2024 17:36:10 +0300 (EEST) Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-2b27c660174so2144812a91.1 for ; Tue, 07 May 2024 07:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715092568; x=1715697368; darn=ffmpeg.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=2A2zfJkinx7+4RxRPpBi73YjTlMUvTFrNtCF1FOpyD4=; b=LRt/izVa3yuLio/OF1gXk6OGmZrLC9KUiVVeMJ0Ph21N4UDZQhlrIYAQtT/fSdPpbd lyycCyBaWAiqq7gmMN9MJTw/eKeZ2JlW9+4oDIqBJZByR1qKdDEwVkLm9ELCJ6P4muDT oc+q24ok3wZQQ6XQN0gm/xO5zfTia0ofPY+72oRzyUF3cbpV72tLt0rqWRhc76oyY7pW u++qZ9sPDcMk+lONPMIrQU+smrBMRGfBfkaf8o3Mjnh+c3nrjuwSFk6chkG2oVvXRq00 rtBjry6tz93Vz8ZaeGSgNkM3LDSj3xI+9tJk+gRTaDTUxr7X6xvWbklYI1rFpgMXutf3 /19A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715092568; x=1715697368; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2A2zfJkinx7+4RxRPpBi73YjTlMUvTFrNtCF1FOpyD4=; b=QwUwbYkLnjtsIo9dFiFHO9NpHdZl+fZVYqJQi27oUEgfiqZnFRvNC4JciF8vWhncpo wqgzD0LAHcbCHM0vrJnwbvLZJPGRgtH1FL+iljm2Vs+Ppro6hQiYDTzNV1hbPZ+BUVEE Bdj62gmW2DkjLiYSQAWCbWYYNc4AT2ox8uxxu3K9rTKlaJz+yMgIe2jXzQswNRwQGOQ/ XlpH3+iviscPqWVYgY/W0SPeGEcuJo8NWwPdXhFo/lG/NVFEbi3j7HDw3D7XaCYUeo1I AyzfJeN5HwzmUO09UBpFr+/5YMFiqRgFVBStMachh3cNEpRij6s4FumJKUnXq7DZ3sY4 UaCw== X-Gm-Message-State: AOJu0YyegKTcRAJoaaTJLjoGXIKQFAEmv/ElxDWnBE7ZbsHrggyULdCG xrmDxP+v2PmkivZ3SdWAaabK/8V5Fryzrpw2xLA1UW2s4uGVdl5eDqAAUQ== X-Google-Smtp-Source: AGHT+IFvl3GwtBl1ES1oNv5EIIODFW1hMcxM0AaMQK+sv4YOSb0r0HYFbRcaonmAjXXHxD6CQKozqw== X-Received: by 2002:a17:90a:bb15:b0:2b4:3659:b3f5 with SMTP id u21-20020a17090abb1500b002b43659b3f5mr9535452pjr.47.1715092567990; Tue, 07 May 2024 07:36:07 -0700 (PDT) Received: from [192.168.0.10] ([190.194.167.233]) by smtp.gmail.com with ESMTPSA id nv16-20020a17090b1b5000b002a67079c3absm9794040pjb.42.2024.05.07.07.36.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 May 2024 07:36:07 -0700 (PDT) Message-ID: <72bf1579-7803-44e5-b660-6599e8c5a4f6@gmail.com> Date: Tue, 7 May 2024 11:36:09 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ffmpeg-devel@ffmpeg.org References: Content-Language: en-US From: James Almer In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH 1/2] tests/checkasm/blockdsp: Fix unaligned stores 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 5/7/2024 7:29 AM, Andreas Rheinhardt wrote: > Fixes this test with UBSan (and maybe also on arches on which > unaligned stores trap). > > Signed-off-by: Andreas Rheinhardt > --- > tests/checkasm/blockdsp.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/tests/checkasm/blockdsp.c b/tests/checkasm/blockdsp.c > index 19d69b8687..f6f25f773e 100644 > --- a/tests/checkasm/blockdsp.c > +++ b/tests/checkasm/blockdsp.c > @@ -36,8 +36,7 @@ typedef struct { > > #define randomize_buffers(size) \ > do { \ > - int i; \ > - for (i = 0; i < size; i++) { \ > + for (int i = 0; i < size; i += 2) { \ > uint16_t r = rnd(); \ > AV_WN16A(buf0 + i, r); \ > AV_WN16A(buf1 + i, r); \ This is incorrect when buf0 and buf1 are uint16_t arrays, as is the case for the clear_block tests. This function doesn't need to be called for fill_block_tab, hence my fix using memset. _______________________________________________ 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".