From 23c9e286b11931d5aef61ff3f5f7613c945791df Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Thu, 10 Aug 2023 13:28:24 +0200 Subject: [PATCH] Fixed invalid memory access. --- aqhome/http/httprequest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqhome/http/httprequest.c b/aqhome/http/httprequest.c index 7328500..e878236 100644 --- a/aqhome/http/httprequest.c +++ b/aqhome/http/httprequest.c @@ -643,7 +643,7 @@ int _unescapeUrlEncoded(const char *src, unsigned int srclen, char *buffer, unsi size=0; - while (*src && srclen>0) { + while (srclen>0 && *src) { unsigned char x; x=(unsigned char)*src;