From 448e624b6500cdd1042894a0211c83730bff8f05 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Sat, 29 Apr 2023 21:06:47 +0000 Subject: [PATCH] Fix UB in memcasemem when no match is found --- http-response-bodies.c | 1 + 1 file changed, 1 insertion(+) diff --git a/http-response-bodies.c b/http-response-bodies.c index 07e0223..07bcc5f 100644 --- a/http-response-bodies.c +++ b/http-response-bodies.c @@ -45,6 +45,7 @@ char* memcasemem(char* haystack, size_t haystacklen, char* needle, size_t needle } } } + return NULL; } int main(int argc, char* argv[]) {