[libreoffice-online] 01/06: add libssl1.1 SIGSEGV fix from master

Rene Engelhard rene at moszumanska.debian.org
Mon Nov 27 18:49:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

rene pushed a commit to branch master
in repository libreoffice-online.

commit 804fa29f585ba2b0e554ce4d3d661e3504452307
Author: Rene Engelhard <rene at rene-engelhard.de>
Date:   Mon Nov 27 19:02:25 2017 +0100

    add libssl1.1 SIGSEGV fix from master
---
 debian/patches/fix-sigsegv-with-libssl1.1.diff | 31 ++++++++++++++++++++++++++
 debian/patches/series                          |  1 +
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/fix-sigsegv-with-libssl1.1.diff b/debian/patches/fix-sigsegv-with-libssl1.1.diff
new file mode 100644
index 0000000..a91e1fc
--- /dev/null
+++ b/debian/patches/fix-sigsegv-with-libssl1.1.diff
@@ -0,0 +1,31 @@
+From 483a5d68e5f7e6b145d957c50120cd05c436387b Mon Sep 17 00:00:00 2001
+From: Pranav Kant <pranavk at collabora.co.uk>
+Date: Mon, 27 Nov 2017 16:29:26 +0530
+Subject: tdf#114073: Potential fix for crash with openssl1.1
+
+Using null ssl context to set options is surely not a good idea:
+
+unsigned long SSL_CTX_set_options(SSL_CTX *ctx, unsigned long op)
+{
+    return ctx->options |= op;
+}
+
+Change-Id: I2700350e0c3928e372488c81b8111c9ab0b48e06
+
+diff --git a/net/Ssl.cpp b/net/Ssl.cpp
+index dd0094b..a16caa2 100644
+--- a/net/Ssl.cpp
++++ b/net/Ssl.cpp
+@@ -50,8 +50,7 @@ SslContext::SslContext(const std::string& certFilePath,
+ #endif
+ 
+ #if OPENSSL_VERSION_NUMBER >= 0x10100003L
+-    SSL_CTX_set_options(nullptr, 0);
+-    OPENSSL_init_ssl(OPENSSL_INIT_LOAD_CONFIG, NULL);
++    OPENSSL_init_ssl(OPENSSL_INIT_LOAD_CONFIG, nullptr);
+ #else
+     SSL_library_init();
+     SSL_load_error_strings();
+-- 
+cgit v0.10.2
+
diff --git a/debian/patches/series b/debian/patches/series
index 5cb7166..13ee98e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ ssl-dir.diff
 logs.diff
 poco-1.8.diff
 ssl-false-per-default.diff
+fix-sigsegv-with-libssl1.1.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openoffice/libreoffice-online.git



More information about the Pkg-openoffice-commits mailing list