kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit c32880e12b4e8d5c93d50d9a04694dee728a0196
parent 0b9e174af47ed270cfe4ef33759edd22a91dd266
Author: Joris Vink <joris@coders.se>
Date:   Fri,  2 Aug 2019 11:34:45 +0200

http_argument_decode() can fail.

Diffstat:
src/http.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -1870,8 +1870,10 @@ http_argument_add(struct http_request *req, char *name, char *value, int qs, if (strcmp(p->name, name)) continue; - if (decode) - http_argument_urldecode(value); + if (decode) { + if (!http_argument_urldecode(value)) + return; + } if (!kore_validator_check(req, p->validator, value)) break;