mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-19 17:11:22 +01:00
[BUG] check_post: limit analysis to the buffer length
If "balance url_param XXX check_post" is used, we must bound the number of bytes analysed to the buffer's length. (cherry picked from commit dc8017ced6a8ec699a50a409f3c8ce5928ea70fa)
This commit is contained in:
parent
39ece3d0f9
commit
6179630e0f
@ -1248,6 +1248,9 @@ struct server *get_server_ph_post(struct session *s)
|
||||
len = chunk;
|
||||
}
|
||||
|
||||
if (len > req->l - body)
|
||||
len = req->l - body;
|
||||
|
||||
p = params;
|
||||
|
||||
while (len > plen) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user