Actions
Bug #2686
closedBug in read parsing code
Status:
Duplicate
Priority:
Normal
Category:
-
Target version:
-
ASK QUESTIONS IN Forums:
Description
In the 1.4.37 release, the lighttp packet parsing code is not handling the end sequence if it spans chunks. It results in the packet not getting processed and a read timeout. Here is a patch for the issue:
--- lighttpd-1.4.37/src/connections.c 2015-08-29 07:22:38.000000000 -0500
+++ ../lighttpd-1.4.37/src/connections.c 2015-11-30 17:17:58.902520007 -0600@ -931,7 +931,7
@
for ( ; cc; cc = cc->next, j = 0 ) {
size_t bblen = buffer_string_length(cc->mem) - cc->offset;
- const char *bb = c->mem->ptr + cc->offset;
+ const char *bb = cc->mem->ptr + cc->offset;
for ( ; j < bblen; j++) {
ch = bb[j];
Updated by stbuehler about 9 years ago
- Is duplicate of Bug #2670: connection hangs when final cr/lf is in seperate packet added
Actions
Also available in: Atom