Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / external / libxml2 / 0001-Increase-buffer-space-for-port-in-HTTP-redirect-supp.patch.1
blobfa90247f5e23716a9a6b7a456de79b257d47dbb1
1 From 5dca9eea1bd4263bfa4d037ab2443de1cd730f7e Mon Sep 17 00:00:00 2001
2 From: Daniel Veillard <veillard@redhat.com>
3 Date: Fri, 7 Apr 2017 17:13:28 +0200
4 Subject: [PATCH] Increase buffer space for port in HTTP redirect support
6 For https://bugzilla.gnome.org/show_bug.cgi?id=780690
8 nanohttp.c: the code wrongly assumed a short int port value.
9 ---
10  nanohttp.c | 4 ++--
11  1 file changed, 2 insertions(+), 2 deletions(-)
13 diff --git a/nanohttp.c b/nanohttp.c
14 index e109ad75..373425de 100644
15 --- a/nanohttp.c
16 +++ b/nanohttp.c
17 @@ -1423,9 +1423,9 @@ retry:
18      if (ctxt->port != 80) {
19         /* reserve space for ':xxxxx', incl. potential proxy */
20         if (proxy)
21 -           blen += 12;
22 +           blen += 17;
23         else
24 -           blen += 6;
25 +           blen += 11;
26      }
27      bp = (char*)xmlMallocAtomic(blen);
28      if ( bp == NULL ) {
29 -- 
30 2.13.5