View | Details | Raw Unified | Return to bug 231475 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
PORTNAME=	haproxy
3
PORTNAME=	haproxy
4
DISTVERSION=	1.8.13
4
DISTVERSION=	1.8.14
5
PORTREVISION=	1
5
PORTREVISION=	1
6
CATEGORIES=	net www
6
CATEGORIES=	net www
7
MASTER_SITES=	http://www.haproxy.org/download/1.8/src/
7
MASTER_SITES=	http://www.haproxy.org/download/1.8/src/
(-)distinfo (-2 / +2 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1532977852
1
TIMESTAMP = 1532977852
2
SHA256 (haproxy-1.8.13.tar.gz) = 2bf5dafbb5f1530c0e67ab63666565de948591f8e0ee2a1d3c84c45e738220f1
2
SHA256 (haproxy-1.8.14.tar.gz) = b17e402578be85e58af7a3eac99b1f675953bea9f67af2e964cf8bdbd1bd3fdf
3
SIZE (haproxy-1.8.13.tar.gz) = 2063046
3
SIZE (haproxy-1.8.14.tar.gz) = 2070813
(-)files/patch-fix-outofbounds (-60 lines)
Lines 1-60 Link Here
1
diff --git a/include/common/hpack-tbl.h b/include/common/hpack-tbl.h
2
index ffa866b..385f386 100644
3
--- include/common/hpack-tbl.h
4
+++ include/common/hpack-tbl.h
5
@@ -155,7 +155,7 @@ static inline const struct hpack_dte *hpack_get_dte(const struct hpack_dht *dht,
6
 }
7
8
 /* returns non-zero if <idx> is valid for table <dht> */
9
-static inline int hpack_valid_idx(const struct hpack_dht *dht, uint16_t idx)
10
+static inline int hpack_valid_idx(const struct hpack_dht *dht, uint32_t idx)
11
 {
12
 	return idx < dht->used + HPACK_SHT_SIZE;
13
 }
14
@@ -181,7 +181,7 @@ static inline struct ist hpack_get_value(const struct hpack_dht *dht, const stru
15
 }
16
17
 /* takes an idx, returns the associated name */
18
-static inline struct ist hpack_idx_to_name(const struct hpack_dht *dht, int idx)
19
+static inline struct ist hpack_idx_to_name(const struct hpack_dht *dht, uint32_t idx)
20
 {
21
 	const struct hpack_dte *dte;
22
23
@@ -196,7 +196,7 @@ static inline struct ist hpack_idx_to_name(const struct hpack_dht *dht, int idx)
24
 }
25
26
 /* takes an idx, returns the associated value */
27
-static inline struct ist hpack_idx_to_value(const struct hpack_dht *dht, int idx)
28
+static inline struct ist hpack_idx_to_value(const struct hpack_dht *dht, uint32_t idx)
29
 {
30
 	const struct hpack_dte *dte;
31
32
diff --git a/src/hpack-dec.c b/src/hpack-dec.c
33
index dfbcaff..99d40f9 100644
34
--- src/hpack-dec.c
35
+++ src/hpack-dec.c
36
@@ -110,7 +110,7 @@ static inline int hpack_idx_to_phdr(uint32_t idx)
37
  * allocated there. In case of allocation failure, returns a string whose
38
  * pointer is NULL.
39
  */
40
-static inline struct ist hpack_alloc_string(struct chunk *store, int idx, struct ist in)
41
+static inline struct ist hpack_alloc_string(struct chunk *store, uint32_t idx, struct ist in)
42
 {
43
 	struct ist out;
44
45
diff --git a/src/hpack-tbl.c b/src/hpack-tbl.c
46
index 9d6b764..e2d4426 100644
47
--- src/hpack-tbl.c
48
+++ src/hpack-tbl.c
49
@@ -113,7 +113,7 @@ static inline unsigned int hpack_dht_get_tail(const struct hpack_dht *dht)
50
 /* dump the whole dynamic header table */
51
 static void hpack_dht_dump(const struct hpack_dht *dht)
52
 {
53
-	int i;
54
+	unsigned int i;
55
 	unsigned int slot;
56
 	char name[4096], value[4096];
57
58
--
59
1.7.12.1
60
(-)files/patch-include-common-hathreads.h (-5 / +5 lines)
Lines 1-11 Link Here
1
--- include/common/hathreads.h.orig	2018-02-17 18:17:22.219400000 +0000
1
--- include/common/hathreads.h.orig
2
+++ include/common/hathreads.h	2018-02-17 18:18:44.598422000 +0000
2
+++ include/common/hathreads.h
3
@@ -104,7 +104,7 @@ extern THREAD_LOCAL unsigned long tid_bit; /* The bit
3
@@ -161,7 +161,7 @@ static inline unsigned long thread_isolated()
4
 /* TODO: thread: For now, we rely on GCC builtins but it could be a good idea to
4
 /* TODO: thread: For now, we rely on GCC builtins but it could be a good idea to
5
  * have a header file regrouping all functions dealing with threads. */
5
  * have a header file regrouping all functions dealing with threads. */
6
6
7
-#if defined(__GNUC__) && (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 7) && !defined(__clang__)
7
-#if defined(__GNUC__) && (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 7) && !defined(__clang__)
8
+#if (defined(__GNUC__) && (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 7) && !defined(__clang__)) || (defined(__clang__) && defined(__i386__))
8
+#if (defined(__GNUC__) && (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 7) && !defined(__clang__)) || (defined(__clang__) && defined(__i386__))
9
 /* gcc < 4.7 */
9
 /* gcc < 4.7 */
10
10
11
 #define HA_ATOMIC_ADD(val, i)        __sync_add_and_fetch(val, i)
11
 #define HA_ATOMIC_ADD(val, i)        __sync_add_and_fetch(val, i)

Return to bug 231475