From ac1a32853e398de3782661c1a437b7e48b8db0e1 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Aug 02 2017 21:01:07 +0000 Subject: Add patch for vsv00001 Signed-off-by: Patrick Uiterwijk --- diff --git a/varnish-vsv00001.patch b/varnish-vsv00001.patch new file mode 100644 index 0000000..a3c69e7 --- /dev/null +++ b/varnish-vsv00001.patch @@ -0,0 +1,12 @@ +diff -rup varnish-5.0.0.orig/bin/varnishd/http1/cache_http1_vfp.c varnish-5.0.0/bin/varnishd/http1/cache_http1_vfp.c +--- varnish-5.0.0.orig/bin/varnishd/http1/cache_http1_vfp.c 2017-08-02 22:59:27.669331942 +0200 ++++ varnish-5.0.0/bin/varnishd/http1/cache_http1_vfp.c 2017-08-02 22:59:59.870371241 +0200 +@@ -155,7 +155,7 @@ v1f_pull_chunked(struct vfp_ctx *vc, str + if (q == NULL || *q != '\0') + return (VFP_Error(vc, "chunked header number syntax")); + cl = (ssize_t)cll; +- if((uintmax_t)cl != cll) ++ if(cl < 0 || (uintmax_t)cl != cll) + return (VFP_Error(vc, "bogusly large chunk size")); + + vfe->priv2 = cl; diff --git a/varnish.spec b/varnish.spec index d678110..efa8670 100644 --- a/varnish.spec +++ b/varnish.spec @@ -12,7 +12,7 @@ Summary: High-performance HTTP accelerator Name: varnish Version: 5.0.0 -Release: 2%{?v_rc}%{?dist} +Release: 3%{?v_rc}%{?dist} License: BSD Group: System Environment/Daemons URL: http://www.varnish-cache.org/ @@ -25,6 +25,7 @@ Patch4: varnish-4.0.3_fix_varnish4_selinux.el6.patch Patch6: varnish-4.1.0.fix_find-provides.patch Patch7: varnish-5.0.0.fix_test_suite_on_secondary_arches.patch Patch8: varnish-5.0.0.fix_reload.patch +Patch9: varnish-vsv00001.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -143,6 +144,7 @@ ln -s pkg-varnish-cache-%{commit1}/debian debian %patch6 -p0 %patch7 -p1 %patch8 -p1 +%patch9 -p1 %build %if 0%{?rhel} == 6 @@ -406,6 +408,9 @@ fi %endif %changelog +* Wed Aug 02 2017 Patrick Uiterwijk - 5.0.0-2.1 +- Add patch for vsv00001 + * Mon Mar 20 2017 Ingvar Hagelund 5.0.0-2 - Added patch from pkg-varnish fixing systemctl reload varnish