haproxy/src
Ricardo Nabinger Sanchez 4bccea9891 BUG/MAJOR: checks: segfault during tcpcheck_main
When using TCP health checks (tcp-check connect), it is possible to
crash with a segfault when, for reasons yet to be understood, the
protocol family is unknown.

In the function tcpcheck_main(), proto is dereferenced without a prior
test in case it is NULL, leading to the segfault during proto->connect
dereference.

The line has been unmodified since it was introduced, in commit
69e273f3fc.  This was the only use of
proto (or more specifically, the return of  protocol_by_family()) that
was unprotected; all other callsites perform the test for a NULL
pointer.

This patch should be backported to 1.9, 1.8, 1.7, and 1.6.
2019-03-29 11:12:35 +01:00
..
51d.c BUG/MEDIUM: 51d: fix possible segfault on deinit_51degrees() 2019-03-07 17:16:27 +01:00
acl.c
action.c BUG/MAJOR: config: verify that targets of track-sc and stick rules are present 2019-02-05 11:54:49 +01:00
activity.c MEDIUM: activity: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:37 +01:00
applet.c
arg.c MINOR: sample: Rework gRPC converter code. 2019-03-05 11:04:23 +01:00
auth.c
backend.c MEDIUM: backend: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:37 +01:00
base64.c
buffer.c
cache.c CLEANUP: cache: don't export http_cache_applet anymore 2019-03-19 09:58:35 +01:00
cfgparse-global.c MINOR: config: remove obsolete use of DEFAULT_MAXCONN at various places 2019-03-13 10:10:25 +01:00
cfgparse-listen.c MINOR: config: make MAX_PROCS configurable at build time 2019-02-07 15:10:19 +01:00
cfgparse.c CLEANUP: listener: remove old thread bit mapping 2019-03-07 13:59:04 +01:00
channel.c
checks.c BUG/MAJOR: checks: segfault during tcpcheck_main 2019-03-29 11:12:35 +01:00
chunk.c
cli.c MINOR: listener: do not needlessly set l->maxconn 2019-02-28 17:05:32 +01:00
compression.c MEDIUM: compression: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
connection.c
da.c
dns.c
ev_epoll.c MEDIUM: pollers: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
ev_kqueue.c MEDIUM: pollers: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
ev_poll.c MEDIUM: pollers: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
ev_select.c MEDIUM: pollers: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
fd.c MEDIUM: fd: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:37 +01:00
filters.c
flt_http_comp.c MEDIUM: compression: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
flt_spoe.c BUG/MAJOR: spoe: Fix initialization of thread-dependent fields 2019-03-18 14:07:38 +01:00
flt_trace.c
freq_ctr.c
frontend.c
h1.c
h2.c BUG/MEDIUM: h2/htx: verify that :path doesn't contain invalid chars 2019-03-05 10:58:28 +01:00
haproxy.c BUG/MEDIUM: mworker: don't free the wrong child when not found 2019-03-28 11:36:18 +01:00
hash.c
hathreads.c MEDIUM: threads: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
hdr_idx.c
hlua_fcn.c
hlua.c MINOR: lua: Don't handle the header Expect in lua HTTP applets anymore 2019-03-19 09:58:35 +01:00
hpack-dec.c
hpack-enc.c
hpack-huff.c
hpack-tbl.c
http_acl.c
http_act.c MEDIUM: http: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
http_conv.c
http_fetch.c MINOR: sample: Replace "req.ungrpc" smp fetch by a "ungrpc" converter. 2019-03-04 08:28:42 +01:00
http_htx.c BUILD/MINOR: htx: fix some potential null-deref warnings with http_find_stline 2019-02-12 12:02:27 +01:00
http_msg.c
http_rules.c
http.c
htx.c MINOR: htx: Add function to drain data from an HTX message 2019-02-26 14:04:23 +01:00
i386-linux-vsys.c
lb_chash.c
lb_fas.c
lb_fwlc.c
lb_fwrr.c MEDIUM: lb/threads: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
lb_map.c MEDIUM: lb/threads: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
listener.c BUILD/MINOR: listener: Silent a few signedness warnings. 2019-03-27 17:37:44 +01:00
log.c BUG/MINOR: log: properly format IPv6 address when LOG_OPT_HEXA modifier is used. 2019-03-22 17:31:18 +01:00
lru.c
mailers.c
map.c
memory.c MEDIUM: memory: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
mux_h1.c BUG/MINOR: mux-h1: Only skip invalid C-L headers on output 2019-03-28 10:00:36 +01:00
mux_h2.c BUG/MEDIUM: mux-h2: make sure to always notify streams of EOS condition 2019-03-25 18:13:16 +01:00
mux_pt.c CLEANUP: muxes/stream-int: Remove flags CS_FL_READ_NULL and SI_FL_READ_NULL 2019-03-25 06:55:23 +01:00
namespace.c
pattern.c
payload.c
peers.c BUG/MINOR: peers: Missing initializations after peer session shutdown. 2019-03-27 15:16:25 +01:00
pipe.c
proto_http.c BUG/MEDIUM: http/htx: Fix handling of the option abortonclose 2019-03-25 06:55:13 +01:00
proto_htx.c MEDIUM: proto_htx: Reintroduce the infinite forwarding on data 2019-03-25 06:55:23 +01:00
proto_sockpair.c MEDIUM: listener: keep a single thread-mask and warn on "process" misuse 2019-02-27 14:27:07 +01:00
proto_tcp.c MEDIUM: proto_tcp: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
proto_udp.c
proto_uxst.c MINOR: listener: introduce listener_backlog() to report the backlog value 2019-02-28 17:05:29 +01:00
protocol.c
proxy.c BUG/MAJOR: config: Wrong maxconn adjustment. 2019-03-07 17:07:23 +01:00
queue.c MEDIUM: queues: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
raw_sock.c
regex.c
sample.c MINOR: sample: Add a protocol buffers specific converter. 2019-03-06 15:36:02 +01:00
server.c MINOR: server: remove a few unneeded LIST_INIT calls after LIST_DEL_LOCKED 2019-02-28 16:08:54 +01:00
session.c MEDIUM: sessions: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
sha1.c
shctx.c
signal.c
ssl_sock.c BUG/MEDIUM: ssl: ability to set TLS 1.3 ciphers using ssl-default-server-ciphersuites 2019-03-22 17:24:14 +01:00
standard.c BUILD: tools: fix a build warning on some 32-bit archs 2019-03-18 16:33:15 +01:00
stats.c BUG/MINOR: stats: Fully consume large requests in the stats applet 2019-03-19 09:49:29 +01:00
stick_table.c
stream_interface.c MINOR: channel: don't unset CF_SHUTR_NOW after shutting down. 2019-03-25 18:35:05 +01:00
stream.c BUG/MEDIUM: http/htx: Fix handling of the option abortonclose 2019-03-25 06:55:13 +01:00
task.c BUG/MEDIUM: task/h2: add an idempotent task removal fucntion 2019-03-25 18:02:54 +01:00
tcp_rules.c MEDIUM: tcp_rules: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
time.c MEDIUM: time: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
trace.c
uri_auth.c
vars.c MEDIUM: vars: Use the new _HA_ATOMIC_* macros. 2019-03-11 17:02:38 +01:00
version.c
xxhash.c