diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-11-02 11:48:21 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-01-05 13:51:02 +0100 |
commit | 430dce024481f61c0edda943fe7a54d35c1d5f3a (patch) | |
tree | 79323a797c854c3e0042305cc24cb881100505b9 | |
parent | 9874b0011547070051f162c63fa9ede2b465c859 (diff) |
curl: upgrade to version 7.51.0
- fixes about a dozen CVEs
- tweak curl-7.26.0_win-proxy.patch:
there is a "checksrc" thing now in curl that fails the build with:
warning: use of strtok is banned (BANNEDFUNC)
so use strtok_s instead (which is MSVC's name for standard strtok_r)
- use Makefile.vc12 instead of Makefile.vc10
- remove strequal.obj from Makefile.vc12, it does not actually exist
Change-Id: Ie2da64980d88c72b0c902376ffc01abf97a7bc91
Reviewed-on: https://gerrit.libreoffice.org/30484
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | download.lst | 4 | ||||
-rw-r--r-- | external/curl/ExternalProject_curl.mk | 2 | ||||
-rw-r--r-- | external/curl/UnpackedTarball_curl.mk | 2 | ||||
-rw-r--r-- | external/curl/curl-7.26.0_win-proxy.patch | 13 | ||||
-rw-r--r-- | external/curl/curl-msvc-schannel.patch.1 | 4 | ||||
-rw-r--r-- | external/curl/curl-msvc.patch.1 | 12 |
6 files changed, 23 insertions, 14 deletions
diff --git a/download.lst b/download.lst index 72be741efd69..79307d69190d 100644 --- a/download.lst +++ b/download.lst @@ -26,8 +26,8 @@ export COINMP_TARBALL := CoinMP-1.7.6.tgz export COLLADA2GLTF_TARBALL := 4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 export CPPUNIT_TARBALL := ac4781e01619be13461bb2d562b94a7b-cppunit-1.13.1.tar.gz export CT2N_TARBALL := 451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.2.oxt -export CURL_MD5SUM := 03940d7d4fcea1521fbbf07c1cf16f5e -export CURL_TARBALL := curl-7.50.0.tar.gz +export CURL_MD5SUM := 490e19a8ccd1f4a244b50338a0eb9456 +export CURL_TARBALL := curl-7.51.0.tar.gz export DBGHELP_DLL := 13fbc2e8b37ddf28181dd6d8081c2b8e-dbghelp.dll export EBOOK_MD5SUM := c25a881d21abc5b4da19205db513cc22 export EBOOK_TARBALL := libe-book-0.1.1.tar.bz2 diff --git a/external/curl/ExternalProject_curl.mk b/external/curl/ExternalProject_curl.mk index b012079bae85..75989ac39236 100644 --- a/external/curl/ExternalProject_curl.mk +++ b/external/curl/ExternalProject_curl.mk @@ -76,7 +76,7 @@ else ifeq ($(COM),MSC) $(call gb_ExternalProject_get_state_target,curl,build): $(call gb_ExternalProject_run,build,\ - MAKEFLAGS= LIB="$(ILIB)" nmake -f Makefile.vc10 \ + MAKEFLAGS= LIB="$(ILIB)" nmake -f Makefile.vc12 \ cfg=$(if $(MSVC_USE_DEBUG_RUNTIME),debug-dll,release-dll) \ EXCFLAGS="/EHa /Zc:wchar_t- /D_CRT_SECURE_NO_DEPRECATE /DUSE_WINDOWS_SSPI $(SOLARINC)" $(if $(filter X86_64,$(CPUNAME)),MACHINE=X64) \ ,lib) diff --git a/external/curl/UnpackedTarball_curl.mk b/external/curl/UnpackedTarball_curl.mk index fc9d3d287246..63055a24a2b4 100644 --- a/external/curl/UnpackedTarball_curl.mk +++ b/external/curl/UnpackedTarball_curl.mk @@ -14,7 +14,7 @@ $(eval $(call gb_UnpackedTarball_set_tarball,curl,$(CURL_TARBALL),,curl)) $(eval $(call gb_UnpackedTarball_set_patchlevel,curl,1)) $(eval $(call gb_UnpackedTarball_fix_end_of_line,curl,\ - lib/Makefile.vc10 \ + lib/Makefile.vc12 \ )) $(eval $(call gb_UnpackedTarball_add_patches,curl,\ diff --git a/external/curl/curl-7.26.0_win-proxy.patch b/external/curl/curl-7.26.0_win-proxy.patch index 4c5327f64529..580479ae4aa2 100644 --- a/external/curl/curl-7.26.0_win-proxy.patch +++ b/external/curl/curl-7.26.0_win-proxy.patch @@ -1,5 +1,5 @@ ---- curl-7.26.0/lib/Makefile.vc10 -+++ misc/build/curl-7.26.0/lib/Makefile.vc10 +--- curl-7.26.0/lib/Makefile.vc12 ++++ misc/build/curl-7.26.0/lib/Makefile.vc12 @@ -118,7 +118,7 @@ WINSSLLIBS = crypt32.lib ZLIBLIBSDLL = zdll.lib @@ -13,7 +13,7 @@ +++ misc/build/curl-7.26.0/lib/url.c @@ -78,6 +78,10 @@ bool curl_win32_idn_to_ascii(const char *in, char **out); - #endif /* USE_LIBIDN */ + #endif /* USE_LIBIDN2 */ +#ifdef WIN32 +#include <WinHttp.h> @@ -52,7 +52,7 @@ #ifndef CURL_DISABLE_HTTP /* If proxy was not specified, we check for default proxy environment -@@ -4613,7 +4633,63 @@ +@@ -4613,7 +4633,64 @@ * For compatibility, the all-uppercase versions of these variables are * checked if the lowercase versions don't exist. */ @@ -83,9 +83,10 @@ + if(!check_noproxy(conn->host.name, no_proxy)) { + /* Look for the http proxy setting */ + char* tok; ++ char *saveptr; + + if(NULL != ieProxy) { -+ tok = strtok(ieProxy, ";"); ++ tok = strtok_s(ieProxy, ";", &saveptr); + if(strchr(tok, '=') == NULL) { + proxy = strdup(ieProxy); + } @@ -95,7 +96,7 @@ + /* We found HTTP proxy value, then use it */ + proxy = strdup(tok + 5); + } -+ tok = strtok(NULL, ";"); ++ tok = strtok_s(NULL, ";", &saveptr); + } + while(NULL != tok); + } diff --git a/external/curl/curl-msvc-schannel.patch.1 b/external/curl/curl-msvc-schannel.patch.1 index 1091a762a5e8..96768aa3f92c 100644 --- a/external/curl/curl-msvc-schannel.patch.1 +++ b/external/curl/curl-msvc-schannel.patch.1 @@ -1,7 +1,7 @@ MSVC: use WNT native Schannel SSL/TLS implementation ---- curl/lib/Makefile.vc10.old 2013-11-19 00:00:29.044499752 +0100 -+++ curl/lib/Makefile.vc10 2013-11-19 00:01:29.135499684 +0100 +--- curl/lib/Makefile.vc12.old 2013-11-19 00:00:29.044499752 +0100 ++++ curl/lib/Makefile.vc12 2013-11-19 00:01:29.135499684 +0100 @@ -260,7 +260,7 @@ TARGET = $(LIBCURL_DYN_LIB_REL) DIROBJ = $(CFG) diff --git a/external/curl/curl-msvc.patch.1 b/external/curl/curl-msvc.patch.1 index 927b3f184a78..88ced0a75493 100644 --- a/external/curl/curl-msvc.patch.1 +++ b/external/curl/curl-msvc.patch.1 @@ -1,7 +1,7 @@ MSVC: using SOLARINC and EXCFLAGS ---- curl/lib/Makefile.vc10 2012-05-24 12:07:02.000000000 -0400 -+++ curl/lib/Makefile.vc10 2012-10-29 11:53:44.658809300 -0400 +--- curl/lib/Makefile.vc12 2012-05-24 12:07:02.000000000 -0400 ++++ curl/lib/Makefile.vc12 2012-10-29 11:53:44.658809300 -0400 @@ -117,7 +117,7 @@ ZLIBLIBSDLL = zdll.lib ZLIBLIBS = zlib.lib @@ -11,6 +11,14 @@ MSVC: using SOLARINC and EXCFLAGS CFGSET = FALSE +@@ -632,7 +632,6 @@ + $(DIROBJ)\vtls.obj \ + $(DIROBJ)\openssl.obj \ + $(DIROBJ)\strdup.obj \ +- $(DIROBJ)\strequal.obj \ + $(DIROBJ)\strerror.obj \ + $(DIROBJ)\strtok.obj \ + $(DIROBJ)\strtoofft.obj \ @@ -620,11 +620,11 @@ debug-dll-ssl-dll\libcurl.res \ debug-dll-zlib-dll\libcurl.res \ |