]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: payload: allow the payload sample fetches to retrieve arbitrary lengths
authorWilly Tarreau <w@1wt.eu>
Fri, 2 Aug 2013 09:07:32 +0000 (11:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Aug 2013 09:07:32 +0000 (11:07 +0200)
commit00f0084752eab236af80e61291d672e835790cff
tree0d3d3b46b152c0aca2db222376e050c77b235acb
parent47060b6ae03cbd83df465cefa885521058d76dfe
MINOR: payload: allow the payload sample fetches to retrieve arbitrary lengths

When using req.payload and res.payload to look up for specific content at an
arbitrary location, we're often facing the problem of not knowing the input
buffer length. If the length argument is larger than the buffer length, the
function did not match, and if they're smaller, there is a risk of not getting
the expected content. This is especially true when looking for data in SOAP
requests.

So let's make some provisions for scanning the whole buffer by specifying a
length of 0 bytes. This greatly simplifies the processing of random-sized
input data.
doc/configuration.txt
src/payload.c