[6.0] d1875b20c Add test for #2617

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Aug 16 08:52:44 UTC 2018


commit d1875b20cbf8bcbb1f7cb370a0d15eda071a92d6
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Sat Apr 14 20:19:24 2018 +0100

    Add test for #2617

diff --git a/bin/varnishtest/tests/r02617.vtc b/bin/varnishtest/tests/r02617.vtc
new file mode 100644
index 000000000..78d9d2a44
--- /dev/null
+++ b/bin/varnishtest/tests/r02617.vtc
@@ -0,0 +1,16 @@
+varnishtest "Test undefined-behaviour: signed integer overflow"
+
+server s1 {
+	rxreq
+	txresp
+} -start
+
+varnish v1 -vcl+backend {
+
+} -start
+
+client c1 {
+	txreq -hdr "Content-Length: 9223372036854775808"
+	rxresp
+	expect resp.status == 400
+} -run


More information about the varnish-commit mailing list