diff --git a/libproxy-pacrunner-crash-fix.patch b/libproxy-pacrunner-crash-fix.patch new file mode 100644 index 0000000..b9ea8ab --- /dev/null +++ b/libproxy-pacrunner-crash-fix.patch @@ -0,0 +1,12 @@ +diff -up libproxy-0.4.11/libproxy/extension_pacrunner.cpp.mozjscrash libproxy-0.4.11/libproxy/extension_pacrunner.cpp +--- libproxy-0.4.11/libproxy/extension_pacrunner.cpp.mozjscrash 2010-07-29 08:14:59.000000000 -0400 ++++ libproxy-0.4.11/libproxy/extension_pacrunner.cpp 2013-09-19 09:22:13.031263766 -0400 +@@ -35,6 +35,7 @@ pacrunner* pacrunner_extension::get(stri + if (this->last == pac) + return this->pr; + delete this->pr; ++ this->pr = NULL; + } + + return this->pr = this->create(pac, pacurl); +diff -up libproxy-0.4.11/libproxy/modules/pacrunner_mozjs.cpp.mozjscrash libproxy-0.4.11/libproxy/modules/pacrunner_mozjs.cpp diff --git a/libproxy.spec b/libproxy.spec index 0bf9ece..124c495 100644 --- a/libproxy.spec +++ b/libproxy.spec @@ -15,6 +15,7 @@ Source0: https://github.com/libproxy/%{name}/archive/%{version}.tar.gz Source1: proxy.1 # http://code.google.com/p/libproxy/issues/detail?id=152 Patch0: 0001-Add-config-module-for-querying-PacRunner-d-mon.patch +Patch1: libproxy-pacrunner-crash-fix.patch BuildRequires: libmodman-devel >= 2.0.1 BuildRequires: cmake >= 2.6.0 @@ -242,6 +243,7 @@ make test %changelog * Thu Jul 13 2017 David King - 0.4.15-2 - Use pkgconfig for BuildRequires +- Fix crash in pacrunner module (#1459779) * Tue May 16 2017 Peter Robinson 0.4.15-1 - Update to 0.4.15