[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;
|
||||
}
|
||||
|
||||
if (len > req->l - body)
|
||||
len = req->l - body;
|
||||
|
||||
p = params;
|
||||
|
||||
while (len > plen) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user