[master] 10749ffe2 Off by one error
Poul-Henning Kamp
phk at FreeBSD.org
Wed Dec 1 20:29:12 UTC 2021
commit 10749ffe2dacd7744ea94265cf751e5a341d3110
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Dec 1 20:28:01 2021 +0000
Off by one error
diff --git a/bin/varnishd/cache/cache_shmlog.c b/bin/varnishd/cache/cache_shmlog.c
index 0db4d5284..60187bc33 100644
--- a/bin/varnishd/cache/cache_shmlog.c
+++ b/bin/varnishd/cache/cache_shmlog.c
@@ -475,7 +475,7 @@ VSLbv(struct vsl_log *vsl, enum VSL_tag_e tag, const char *fmt, va_list ap)
n = mlen - 1; /* we truncate long fields */
p[n++] = '\0'; /* NUL-terminated */
vsl->wlp = vsl_hdr(tag, vsl->wlp, n, vsl->wid);
- assert(vsl->wlp < vsl->wle);
+ assert(vsl->wlp <= vsl->wle);
vsl->wlr++;
if (DO_DEBUG(DBG_SYNCVSL))
More information about the varnish-commit
mailing list