[master] a1c26cab8 vmod_debug: Add WS_Alloc() assertions
Nils Goroll
nils.goroll at uplex.de
Thu Dec 5 11:14:10 UTC 2024
commit a1c26cab87670d4b6b2deea52505f4dc6626b9c6
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Dec 5 11:56:36 2024 +0100
vmod_debug: Add WS_Alloc() assertions
Coverity CIDs 1633177 1633176
diff --git a/vmod/vmod_debug_filters.c b/vmod/vmod_debug_filters.c
index 53777996d..464e95458 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)) \
More information about the varnish-commit
mailing list