Commit 7c99824b7d for aom

commit 7c99824b7d47852c328298f114cda001ec70c4f8
Author: Wan-Teh Chang <wtc@google.com>
Date:   Wed Jan 7 10:52:46 2026 -0800

    av1_lowbd_inv_txfm2d_add_avx2: default case only

    If the default case is used after all valid cases have been exhausted,
    the default case implies tx_size is an invalid value of TX_SIZE (> 18),
    so we should not call lowbd_inv_txfm2d_add_universe_avx2(), which uses
    the tx_size parameter as an index into an array of size TX_SIZES_ALL
    (19).

    Instead, use the default case only and assert that tx_size is valid.
    Then it is safe to call lowbd_inv_txfm2d_add_universe_avx2().

    Fixes Coverity defect CID 556375 (Out-of-bounds access).

    Change-Id: I8440862da31d497d9a9c603f355123b4255f13f7

diff --git a/av1/common/x86/av1_inv_txfm_avx2.c b/av1/common/x86/av1_inv_txfm_avx2.c
index edee095266..78ea98a26b 100644
--- a/av1/common/x86/av1_inv_txfm_avx2.c
+++ b/av1/common/x86/av1_inv_txfm_avx2.c
@@ -9,6 +9,8 @@
  * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
  */

+#include <assert.h>
+
 #include "config/aom_config.h"

 #include "config/av1_rtcd.h"
@@ -2226,16 +2228,8 @@ void av1_lowbd_inv_txfm2d_add_avx2(const int32_t *input, uint8_t *output,
       lowbd_inv_txfm2d_add_8x8_avx2(input, output, stride, tx_type, tx_size,
                                     eob);
       break;
-    case TX_16X16:
-    case TX_32X32:
-    case TX_64X64:
-    case TX_16X32:
-    case TX_32X16:
-    case TX_32X64:
-    case TX_64X32:
-    case TX_16X64:
-    case TX_64X16:
     default:
+      assert(tx_size < TX_SIZES_ALL);
       lowbd_inv_txfm2d_add_universe_avx2(input, output, stride, tx_type,
                                          tx_size, eob);
       break;