[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:
Willy Tarreau 2009-12-06 18:16:59 +01:00
parent 1a8bea9390
commit dc8017ced6

View File

@ -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) {