# aom: Increase filter buffer size to silence warnings

**URL:** <https://discourse.libsdl.org/t/aom-increase-filter-buffer-size-to-silence-warnings/50314>\
**Category:** SDL Commits\
**Created:** [April 6, 2024, 10:08pm UTC](https://discourse.libsdl.org/t/aom-increase-filter-buffer-size-to-silence-warnings/50314 "2024-04-06T22:08:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [April 6, 2024, 10:08pm UTC](https://discourse.libsdl.org/t/aom-increase-filter-buffer-size-to-silence-warnings/50314/1 "2024-04-06T22:08:02Z")

</div>

> <https://github.com/libsdl-org/aom/commit/b53a6307466418464605c858a5f5e2347ce805b0>
>
> The asan reports global-buffer-overflow on address of the
> filter coefficient buf…fer.
> 
> BUG=b/324147074
> 
> Change-Id: Idf6db1394f2df26e6802f13073d34cd97a7ce8dc

```diff
From b53a6307466418464605c858a5f5e2347ce805b0 Mon Sep 17 00:00:00 2001
From: Jingning Han <[EMAIL REDACTED]>
Date: Mon, 1 Apr 2024 12:13:24 -0700
Subject: [PATCH] Increase filter buffer size to silence warnings

The asan reports global-buffer-overflow on address of the
filter coefficient buffer.

BUG=b/324147074

Change-Id: Idf6db1394f2df26e6802f13073d34cd97a7ce8dc
---
 av1/encoder/tune_vmaf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/av1/encoder/tune_vmaf.c b/av1/encoder/tune_vmaf.c
index 91db3db72..847571f89 100644
--- a/av1/encoder/tune_vmaf.c
+++ b/av1/encoder/tune_vmaf.c
@@ -247,7 +247,7 @@ static AOM_INLINE void unsharp(const AV1_COMP *const cpi,
 
 // 8-tap Gaussian convolution filter with sigma = 1.0, sums to 128,
 // all co-efficients must be even.
-DECLARE_ALIGNED(16, static const int16_t, gauss_filter[8]) = { 0, 8, 30, 52,
+DECLARE_ALIGNED(16, static const int16_t, gauss_filter[9]) = { 0, 8, 30, 52,
                                                                30, 8, 0, 0 };
 static AOM_INLINE void gaussian_blur(const int bit_depth,
                                      const YV12_BUFFER_CONFIG *source,

```
