Commit 463d5c52b8 for aom

commit 463d5c52b8a27e201bdbb1479312675d383b028a
Author: James Zern <jzern@google.com>
Date:   Tue Apr 21 16:45:09 2026 -0700

    pickcdef,av1_cdef_search: use calloc for cdef_search_ctx

    Avoids free's of uninitialized pointer should any subsequent allocations
    fail in `cdef_alloc_data()`. Needed after:
    4d28dff725 Refactor memory alloc/dealloc of CDEF search context buffers

    Bug: 501471698
    Fixed: 501471698
    Change-Id: I4a9b52442daa6523e3302cae83fc02abf44358c9

diff --git a/av1/encoder/pickcdef.c b/av1/encoder/pickcdef.c
index d498c0671d..a315f6a440 100644
--- a/av1/encoder/pickcdef.c
+++ b/av1/encoder/pickcdef.c
@@ -874,7 +874,7 @@ void av1_cdef_search(AV1_COMP *cpi) {

   if (!cpi->cdef_search_ctx)
     CHECK_MEM_ERROR(cm, cpi->cdef_search_ctx,
-                    aom_malloc(sizeof(*cpi->cdef_search_ctx)));
+                    aom_calloc(1, sizeof(*cpi->cdef_search_ctx)));
   CdefSearchCtx *cdef_search_ctx = cpi->cdef_search_ctx;

   // Initialize parameters related to CDEF search context.