Project

General

Profile

Bug #2686

Bug in read parsing code

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

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-12-01
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

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

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

Actions

History

#1

Updated by stbuehler almost 4 years ago

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

Updated by stbuehler almost 4 years ago

  • Status changed from New to Duplicate

Also available in: Atom