[master] 3092670ea cache_shmlog: Missing assertion

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Jan 22 10:14:11 UTC 2024


commit 3092670ea20e4baf07ea65210eca91c642dfecd2
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon Jan 22 11:10:34 2024 +0100

    cache_shmlog: Missing assertion

diff --git a/bin/varnishd/cache/cache_shmlog.c b/bin/varnishd/cache/cache_shmlog.c
index 971c65ae6..ee671afd9 100644
--- a/bin/varnishd/cache/cache_shmlog.c
+++ b/bin/varnishd/cache/cache_shmlog.c
@@ -110,6 +110,7 @@ vsl_sanity(const struct vsl_log *vsl)
 	AN(vsl->wlp);
 	AN(vsl->wlb);
 	AN(vsl->wle);
+	assert(vsl->wlb <= vsl->wlp);
 	assert(vsl->wlp <= vsl->wle);
 }
 


More information about the varnish-commit mailing list