From 8ce9ad4b8d85233d33c5b7c41ea9fec17a5ec5df Mon Sep 17 00:00:00 2001 From: heil Date: Mon, 7 Sep 2015 00:00:45 +0200 Subject: [PATCH] haproxy: fixes from upstream - [PATCH 05/13] BUG/MINOR: http/sample: gmtime/localtime can fail - [PATCH 06/13] DOC: typo in 'redirect', 302 code meaning - [PATCH 07/13] DOC: mention that %ms is left-padded with zeroes. - [PATCH 08/13] CLEANUP: .gitignore: ignore more test files - [PATCH 09/13] CLEANUP: .gitignore: finally ignore everything but what - [PATCH 10/13] MEDIUM: config: emit a warning on a frontend without - [PATCH 11/13] BUG/MEDIUM: counters: ensure that src_{inc,clr}_gpc0 - [PATCH 12/13] DOC: ssl: missing LF - [PATCH 13/13] DOC: fix example of http-request using Signed-off-by: heil --- net/haproxy/Makefile | 2 +- ...ttp-sample-gmtime-localtime-can-fail.patch | 33 +++++++ ...OC-typo-in-redirect-302-code-meaning.patch | 27 ++++++ ...n-that-ms-is-left-padded-with-zeroes.patch | 27 ++++++ ...UP-.gitignore-ignore-more-test-files.patch | 50 ++++++++++ ...re-finally-ignore-everything-but-wha.patch | 44 +++++++++ ...it-a-warning-on-a-frontend-without-l.patch | 46 +++++++++ ...ers-ensure-that-src_-inc-clr-_gpc0-c.patch | 93 +++++++++++++++++++ .../patches/0012-DOC-ssl-missing-LF.patch | 27 ++++++ ...of-http-request-using-ssl_fc_session.patch | 30 ++++++ 10 files changed, 378 insertions(+), 1 deletion(-) create mode 100644 net/haproxy/patches/0005-BUG-MINOR-http-sample-gmtime-localtime-can-fail.patch create mode 100644 net/haproxy/patches/0006-DOC-typo-in-redirect-302-code-meaning.patch create mode 100644 net/haproxy/patches/0007-DOC-mention-that-ms-is-left-padded-with-zeroes.patch create mode 100644 net/haproxy/patches/0008-CLEANUP-.gitignore-ignore-more-test-files.patch create mode 100644 net/haproxy/patches/0009-CLEANUP-.gitignore-finally-ignore-everything-but-wha.patch create mode 100644 net/haproxy/patches/0010-MEDIUM-config-emit-a-warning-on-a-frontend-without-l.patch create mode 100644 net/haproxy/patches/0011-BUG-MEDIUM-counters-ensure-that-src_-inc-clr-_gpc0-c.patch create mode 100644 net/haproxy/patches/0012-DOC-ssl-missing-LF.patch create mode 100644 net/haproxy/patches/0013-DOC-fix-example-of-http-request-using-ssl_fc_session.patch diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile index 40d641141..46d392e34 100644 --- a/net/haproxy/Makefile +++ b/net/haproxy/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=haproxy PKG_VERSION:=1.5.14 -PKG_RELEASE:=04 +PKG_RELEASE:=13 PKG_SOURCE:=haproxy-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://haproxy.1wt.eu/download/1.5/src/ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) diff --git a/net/haproxy/patches/0005-BUG-MINOR-http-sample-gmtime-localtime-can-fail.patch b/net/haproxy/patches/0005-BUG-MINOR-http-sample-gmtime-localtime-can-fail.patch new file mode 100644 index 000000000..23012ba0c --- /dev/null +++ b/net/haproxy/patches/0005-BUG-MINOR-http-sample-gmtime-localtime-can-fail.patch @@ -0,0 +1,33 @@ +From 955587271031d66e9b7a768e3bb18dae00b60cc6 Mon Sep 17 00:00:00 2001 +From: Thierry FOURNIER +Date: Wed, 8 Jul 2015 00:15:20 +0200 +Subject: [PATCH 05/13] BUG/MINOR: http/sample: gmtime/localtime can fail + +The man said that gmtime() and localtime() can return a NULL value. +This is not tested. It appears that all the values of a 32 bit integer +are valid, but it is better to check the return of these functions. + +However, if the integer move from 32 bits to 64 bits, some 64 values +can be unsupported. +(cherry picked from commit fac9ccfb705702f211f99e67d5f5d5129002086a) +[wt: we only have sample_conv_date() in 1.5] +--- + src/proto_http.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/proto_http.c b/src/proto_http.c +index 5db64b5..02dc42b 100644 +--- a/src/proto_http.c ++++ b/src/proto_http.c +@@ -11249,6 +11249,8 @@ static int sample_conv_http_date(const struct arg *args, struct sample *smp) + curr_date += args[0].data.sint; + + tm = gmtime(&curr_date); ++ if (!tm) ++ return 0; + + temp = get_trash_chunk(); + temp->len = snprintf(temp->str, temp->size - temp->len, +-- +2.4.6 + diff --git a/net/haproxy/patches/0006-DOC-typo-in-redirect-302-code-meaning.patch b/net/haproxy/patches/0006-DOC-typo-in-redirect-302-code-meaning.patch new file mode 100644 index 000000000..9b962807c --- /dev/null +++ b/net/haproxy/patches/0006-DOC-typo-in-redirect-302-code-meaning.patch @@ -0,0 +1,27 @@ +From 6c7351bdd0778bc171a2b54faed058eadc8c9d0d Mon Sep 17 00:00:00 2001 +From: Baptiste Assmann +Date: Mon, 3 Aug 2015 11:42:50 +0200 +Subject: [PATCH 06/13] DOC: typo in 'redirect', 302 code meaning + +302 means a temprary move, not a permanent one +(cherry picked from commit ea849c0cca63b1b56c9c36f9c3504caa5e826816) +--- + doc/configuration.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/doc/configuration.txt b/doc/configuration.txt +index 64697a4..e8d8b2a 100644 +--- a/doc/configuration.txt ++++ b/doc/configuration.txt +@@ -5443,7 +5443,7 @@ redirect scheme [code ]