From a1c26cab87670d4b6b2deea52505f4dc6626b9c6 Mon Sep 17 00:00:00 2001 From: Nils Goroll Date: Thu, 5 Dec 2024 11:56:36 +0100 Subject: [PATCH] vmod_debug: Add WS_Alloc() assertions Coverity CIDs 1633177 1633176 --- vmod/vmod_debug_filters.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vmod/vmod_debug_filters.c b/vmod/vmod_debug_filters.c index 53777996da..464e95458a 100644 --- a/vmod/vmod_debug_filters.c +++ b/vmod/vmod_debug_filters.c @@ -585,6 +585,7 @@ static const struct vdp xyzzy_vdp_chkcrc32 = { p->priv = WS_Alloc(ws, sizeof *cfg); \ p->len = sizeof *cfg; \ } \ + AN(p->priv); \ cfg = p->priv; \ INIT_OBJ(cfg, magic); \ if (mode_e == VENUM(log)) \