mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02: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.
This commit is contained in:
parent
1a8bea9390
commit
dc8017ced6
@ -289,6 +289,9 @@ struct server *get_server_ph_post(struct session *s)
|
|||||||
len = chunk;
|
len = chunk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (len > req->l - body)
|
||||||
|
len = req->l - body;
|
||||||
|
|
||||||
p = params;
|
p = params;
|
||||||
|
|
||||||
while (len > plen) {
|
while (len > plen) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user