From 470cc0863d276c339db0e84b64055523823c2587 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 1 Feb 2023 13:32:45 +0000 Subject: [PATCH] conf: fix potential crash with invalid input data closes #474 --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index 7f94b65..257cafe 100644 --- a/src/conf.c +++ b/src/conf.c @@ -427,7 +427,7 @@ static int config_parse (struct config_s *conf, FILE * f) while(isspace(*p))p++; if(!*p) continue; q = p; - while(!isspace(*q))q++; + while(*q && !isspace(*q))q++; c = *q; *q = 0; e = config_directive_find(p, strlen(p));