diff --git a/varnish-vsv00001.patch b/varnish-vsv00001.patch new file mode 100644 index 0000000..bd7a0b6 --- /dev/null +++ b/varnish-vsv00001.patch @@ -0,0 +1,12 @@ +diff -rup varnish-5.1.2.orig/bin/varnishd/http1/cache_http1_vfp.c varnish-5.1.2/bin/varnishd/http1/cache_http1_vfp.c +--- varnish-5.1.2.orig/bin/varnishd/http1/cache_http1_vfp.c 2017-08-02 22:43:30.137116214 +0200 ++++ varnish-5.1.2/bin/varnishd/http1/cache_http1_vfp.c 2017-08-02 22:44:06.433218762 +0200 +@@ -152,7 +152,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 b32515f..d8ae398 100644 --- a/varnish.spec +++ b/varnish.spec @@ -17,7 +17,7 @@ Summary: High-performance HTTP accelerator Name: varnish Version: 5.1.2 -Release: 1%{?v_rc}%{?dist}.1 +Release: 3%{?v_rc}%{?dist} License: BSD Group: System Environment/Daemons URL: http://www.varnish-cache.org/ @@ -27,6 +27,7 @@ Patch1: varnish-5.1.1.fix_ld_library_path_in_doc_build.patch Patch4: varnish-4.0.3_fix_varnish4_selinux.el6.patch Patch6: varnish-4.1.0.fix_find-provides.patch Patch9: varnish-5.1.1.fix_python_version.patch +Patch10: varnish-vsv00001.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -396,6 +397,9 @@ fi %endif %changelog +* Wed Aug 02 2017 Patrick Uiterwijk - 5.1.2-3 +- Added patch for vsv00001 + * Thu Jul 27 2017 Fedora Release Engineering - 5.1.2-1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild