[master] 25aae185d Silence FlexeLint

Poul-Henning Kamp phk at FreeBSD.org
Tue Sep 7 05:58:07 UTC 2021


commit 25aae185d818e19b5b2850862316d7b71a6ec582
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Sep 7 05:57:24 2021 +0000

    Silence FlexeLint

diff --git a/lib/libvarnish/vre.c b/lib/libvarnish/vre.c
index a1ad3da51..d994f13fe 100644
--- a/lib/libvarnish/vre.c
+++ b/lib/libvarnish/vre.c
@@ -207,7 +207,7 @@ vre_capture(const vre_t *code, const char *subject, size_t length,
 	}
 
 	ovector = pcre2_get_ovector_pointer(data);
-	nov = 2 * pcre2_get_ovector_count(data);
+	nov = 2L * pcre2_get_ovector_count(data);
 	for (g = 0; g < nov; g++)
 		ovector[g] = PCRE2_UNSET;
 


More information about the varnish-commit mailing list