mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-15 20:39:44 -04: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 dc8017ced6)
This commit is contained in:
parent
39ece3d0f9
commit
6179630e0f
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue