fix parser bug which skipped bytes in long uris
+#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <ctype.h>
@@ -1234,6 +1235,10 @@ htparser_run(htparser * p, htparse_hooks * hooks, const char * data, size_t len)
break;
}
+ if (evhtp_unlikely(i + 1 >= len)) {
+ break;
+ }
+
ch = data[++i];
} while (i < len);
