]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: regex: Remove null terminated strings.
authorThierry FOURNIER <tfournier@exceliance.fr>
Wed, 18 Jun 2014 09:53:08 +0000 (11:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 18 Jun 2014 13:12:51 +0000 (15:12 +0200)
commitc9c2daf283011e9b9ab0af57629af47862e14e0e
tree4c1df4c420d62deb8ffefd934c73164e07e8f675
parent09af0d6d4353b9045b9ddb893b21c45f4b92ca21
MEDIUM: regex: Remove null terminated strings.

The new regex function can use string and length. The HAproxy buffer are
not null-terminated, and the use of the regex_exec* functions implies
the add of this null character. This patch replace these function by the
functions which takes a string and length as input.

Just the file "proto_http.c" is change because this one is more executed
than other. The file "checks.c" have a very low usage, and it is not
interesting to change it. Furthermore, the buffer used by "checks.c" are
null-terminated.
src/proto_http.c