node/test/abort
Gireesh Punathil efab7847c6 http: assert parser.consume argument's type
Unchecked argument conversion in Parser::Consume crashes node
in an slightly undesirable manner - 'unreachable code' in parser.

Make sure we validate the incoming type at the earliest point.

PR-URL: https://github.com/nodejs/node/pull/12288
Fixes: https://github.com/nodejs/node/issues/12178
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2017-06-05 17:13:10 -04:00
..
test-abort-backtrace.js test: add abort test for backtrace validation 2016-06-29 13:50:22 +02:00
test-abort-uncaught-exception.js test: fix abort/test-abort-uncaught-exception 2016-06-29 13:49:31 +02:00
test-http-parser-consume.js http: assert parser.consume argument's type 2017-06-05 17:13:10 -04:00
testcfg.py test: add testcfg.py to test/abort/ 2016-06-29 13:48:33 +02:00