Browse files

node06 http parser fix

Change-Id: I5fd65b7f8210b07c6eb295c85df745c83a061b9c
  • Loading branch information...
1 parent c129b5e commit 8a5020254ba3558cb9a6679dbe843399db23591e @mariash mariash committed May 7, 2012
Showing with 13 additions and 1 deletion.
  1. +1 −0 packages/dea_node06/packaging
  2. +1 −1 packages/dea_node06/spec
  3. +11 −0 src/node/typo-in-node_http_parser.patch
View
1 packages/dea_node06/packaging
@@ -4,6 +4,7 @@ set -e
tar xzf node/node-v0.6.8.tar.gz
(
cd node-v0.6.8
+ patch -p1 < ../node/typo-in-node_http_parser.patch
./configure --prefix=${BOSH_INSTALL_TARGET}
make
make install
View
2 packages/dea_node06/spec
@@ -2,4 +2,4 @@
name: dea_node06
files:
- node/node-v0.6.8.tar.gz
-
+- node/typo-in-node_http_parser.patch
View
11 src/node/typo-in-node_http_parser.patch
@@ -0,0 +1,11 @@
+--- node-0.6.8/src/node_http_parser.cc 2012-05-07 14:35:09.000000000 -0700
++++ node-0.6.8-http-fix/src/node_http_parser.cc 2012-05-07 14:42:45.000000000 -0700
+@@ -191,7 +191,7 @@ struct StringPtr {
+ void Update(const char* str, size_t size) {
+ if (str_ == NULL)
+ str_ = str;
+- else if (on_heap_ || str_ + size != str) {
++ else if (on_heap_ || str_ + size_ != str) {
+ // Non-consecutive input, make a copy on the heap.
+ // TODO Use slab allocation, O(n) allocs is bad.
+ char* s = new char[size_ + size];

0 comments on commit 8a50202

Please sign in to comment.