Project

General

Profile

Actions

Bug #2686

closed

Bug in read parsing code

Added by keppinett almost 9 years ago. Updated almost 9 years ago.

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];

Related issues 1 (0 open1 closed)

Is duplicate of Bug #2670: connection hangs when final cr/lf is in seperate packetFixed2015-09-23Actions
Actions #1

Updated by stbuehler almost 9 years ago

  • Is duplicate of Bug #2670: connection hangs when final cr/lf is in seperate packet added
Actions #2

Updated by stbuehler almost 9 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom