]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: httpclient: segfault when the httpclient parser fails
authorThierry Fournier <tfournier@arpalert.org>
Mon, 10 Oct 2022 10:46:38 +0000 (12:46 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 17 Oct 2022 10:04:06 +0000 (12:04 +0200)
commit74a9eb5216641b2b0d4ae6a96906fc4a36a90b6c
tree5e9c992627b3124174e16dfa3aaf81ff9b611d93
parent47ddc8987979abfd04852c248476ec6010bb01cf
BUG/MEDIUM: httpclient: segfault when the httpclient parser fails

If the uri is unexpected ("/" in place of "http://xxx/"), some parsing
function fails. The failure is not handled.

This patch handle these errors. Note: the return code is boolean, maybe
we can return more precise error for Lua reporting ?

Must be backported in 2.6.
src/http_client.c