summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorMatteo Collina <hello@matteocollina.com>2018-08-21 17:26:51 +0200
committerRod Vagg <rod@vagg.org>2018-11-28 11:36:34 +1100
commit186035243fad247e3955fa0c202987cae99e82db (patch)
tree5295da6874a1988a3c36682e95d19883f639b71c /deps
parent3ec85763f678aff5a962fbcbe76d844a1029e22e (diff)
downloadandroid-node-v8-186035243fad247e3955fa0c202987cae99e82db.tar.gz
android-node-v8-186035243fad247e3955fa0c202987cae99e82db.tar.bz2
android-node-v8-186035243fad247e3955fa0c202987cae99e82db.zip
deps,http: http_parser set max header size to 8KB
CVE-2018-12121 PR-URL: https://github.com/nodejs-private/node-private/pull/143 Ref: https://github.com/nodejs-private/security/issues/139 Ref: https://github.com/nodejs-private/http-parser-private/pull/2 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'deps')
-rw-r--r--deps/http_parser/http_parser.gyp4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/http_parser/http_parser.gyp b/deps/http_parser/http_parser.gyp
index ef34ecaeae..4364f73d1f 100644
--- a/deps/http_parser/http_parser.gyp
+++ b/deps/http_parser/http_parser.gyp
@@ -56,7 +56,7 @@
'defines': [ 'HTTP_PARSER_STRICT=0' ],
'include_dirs': [ '.' ],
},
- 'defines': [ 'HTTP_PARSER_STRICT=0' ],
+ 'defines': [ 'HTTP_MAX_HEADER_SIZE=8192', 'HTTP_PARSER_STRICT=0' ],
'sources': [ './http_parser.c', ],
'conditions': [
['OS=="win"', {
@@ -79,7 +79,7 @@
'defines': [ 'HTTP_PARSER_STRICT=1' ],
'include_dirs': [ '.' ],
},
- 'defines': [ 'HTTP_PARSER_STRICT=1' ],
+ 'defines': [ 'HTTP_MAX_HEADER_SIZE=8192', 'HTTP_PARSER_STRICT=1' ],
'sources': [ './http_parser.c', ],
'conditions': [
['OS=="win"', {