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