1
0
Fork 0
mirror of https://github.com/haproxy/haproxy.git synced 2026-07-27 16:22:12 +02:00
HAProxy Load Balancer's development branch (mirror of git.haproxy.org)
  • C 97.8%
  • Shell 1%
  • Makefile 0.5%
  • Awk 0.2%
  • Lua 0.2%
  • Other 0.1%
Find a file
Willy Tarreau d10d08570f BUG/MINOR: http-htx: check the strdup() of the "lf-string" http reply argument
In http_parse_http_reply(), the "lf-string" argument copies its value with
strdup() without checking the result:

	obj = strdup(args[cur_arg]);
	objlen = strlen(args[cur_arg]);
	reply->type = HTTP_REPLY_LOGFMT;

while every sibling argument does check it ("string", and "lf-file" through its
combined "!obj || read(...)" test). <obj> is later handed over to
parse_logformat_string(), which starts with "lf_expr->str = strdup(fmt)", so a
NULL would be passed to strdup() and dereferenced.

This only happens if an allocation fails while parsing the configuration, so the
impact is limited, but the check is missing where all the others are present.

This should be backported to all supported versions.
2026-07-27 15:49:21 +02:00
.github CI: github: update vmactions/freebsd-vm to 14.4 2026-07-08 17:06:00 +02:00
addons MAJOR: proxy: convert server list to a doubly linked struct list 2026-07-24 09:33:31 +02:00
admin MINOR: halog: Add support filtering on header capture values using -hdr-match 2026-07-24 11:37:53 +02:00
dev DEV: patchbot: document the shared review persistence 2026-07-07 15:05:38 +02:00
doc DOC: ssl: Document tune.ssl.keyupdate-rate-limit 2026-07-24 00:32:00 +02:00
examples
include BUG/MEDIUM: mux-h1: Always adjust case for all outgoing headers as expected 2026-07-24 11:56:44 +02:00
reg-tests BUG/MINOR: sample: Fix bytes() when length it greater than remaining data 2026-07-21 07:29:50 +02:00
scripts REGTESTS: Remove support for REQUIRE_SERVICE from scripts/run-regtests.sh 2026-07-08 14:50:25 +02:00
src BUG/MINOR: http-htx: check the strdup() of the "lf-string" http reply argument 2026-07-27 15:49:21 +02:00
tests
.gitattributes
.gitignore
.mailmap
.travis.yml
BRANCHES
BSDmakefile
CHANGELOG [RELEASE] Released version 3.5-dev3 2026-07-22 17:36:25 +02:00
CONTRIBUTING
INSTALL
LICENSE
MAINTAINERS
Makefile MEDIUM: ssl: introduce src/fips.c with TLS version check 2026-07-10 19:42:03 +02:00
README.md DOC: readme: add a pointer to haterm/haload docs 2026-07-08 14:48:52 +02:00
SUBVERS
VERDATE [RELEASE] Released version 3.5-dev3 2026-07-22 17:36:25 +02:00
VERSION [RELEASE] Released version 3.5-dev3 2026-07-22 17:36:25 +02:00

HAProxy

AWS-LC Illumos NetBSD CrossCompile FreeBSD VTest

HAProxy logo

HAProxy is a free, very fast and reliable reverse-proxy offering high availability, load balancing, and proxying for TCP and HTTP-based applications.

Installation

The INSTALL file describes how to build HAProxy. A list of packages is also available on the wiki.

Getting help

The discourse and the mailing-list are available for questions or configuration assistance. You can also use the slack or IRC channel. Please don't use the issue tracker for these.

The issue tracker is only for bug reports or feature requests.

Documentation

The HAProxy documentation has been split into a number of different files for ease of use. It is available in text format as well as HTML. The wiki is also meant to replace the old architecture guide.

Please refer to the following files depending on what you're looking for:

The more detailed documentation is located into the doc/ directory:

License

HAProxy is licensed under GPL 2 or any later version, the headers under LGPL 2.1. See the LICENSE file for a more detailed explanation.