906948
--- a/modules/lua/lua_request.c	2021/12/16 11:09:40	1896038
906948
+++ b/modules/lua/lua_request.c	2021/12/16 11:15:47	1896039
906948
@@ -410,6 +410,7 @@
906948
             if (end == NULL) break;
906948
             key = (char *) apr_pcalloc(r->pool, 256);
906948
             filename = (char *) apr_pcalloc(r->pool, 256);
906948
+            if (end - crlf <= 8) break;
906948
             vlen = end - crlf - 8;
906948
             buffer = (char *) apr_pcalloc(r->pool, vlen+1);
906948
             memcpy(buffer, crlf + 4, vlen);