[master] de19176b1 Make sure to not involve 64 bit overflow

Poul-Henning Kamp phk at FreeBSD.org
Mon May 31 17:13:05 UTC 2021


commit de19176b1d67c6b173ca6f604dcf2978dd2da891
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon May 31 17:05:33 2021 +0000

    Make sure to not involve 64 bit overflow

diff --git a/bin/varnishtest/tests/i00001.vtc b/bin/varnishtest/tests/i00001.vtc
index 48f46e9ac..b952a5016 100644
--- a/bin/varnishtest/tests/i00001.vtc
+++ b/bin/varnishtest/tests/i00001.vtc
@@ -32,7 +32,8 @@ varnish v1 -vcl+backend {
 			set resp.http.foo = obj.ttl * 10000000000;
 		}
 		if (req.http.bar) {
-			set resp.http.bar = storage.Transient.free_space * 10000000 * 100000000;
+			# unlimited malloc stevedore returns VCL_INT_MAX - epsilon
+			set resp.http.bar = storage.Transient.free_space * 10;
 		}
 	}
 } -start


More information about the varnish-commit mailing list