Permalink
Browse files

Fix a read-past-buffer bug in addStatusHeaderFromStatusLine().

  • Loading branch information...
FooBarWidget committed Apr 2, 2013
1 parent 9f5da46 commit 0f2659447c7757748bde3a7becfcc983197ae9f1
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/common/agents/HelperAgent/RequestHandler.h
@@ -870,7 +870,7 @@ class RequestHandler {
pos = appendData(pos, end, "Status: ");
pos = appendData(pos, end, statusValue);
pos = appendData(pos, end, "\r\n");
- headerData.append(header);
+ headerData.append(StaticString(header, pos - header));
return true;
} else {
disconnectWithError(client, "application sent malformed response: the HTTP status line is invalid.");

0 comments on commit 0f26594

Please sign in to comment.