Skip to content

http_parser: assert on incoming argument's type#12288

Closed
gireeshpunathil wants to merge 1 commit into
nodejs:masterfrom
gireeshpunathil:parsertype
Closed

http_parser: assert on incoming argument's type#12288
gireeshpunathil wants to merge 1 commit into
nodejs:masterfrom
gireeshpunathil:parsertype

Conversation

@gireeshpunathil
Copy link
Copy Markdown
Member

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.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

http_parser

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. http_parser Issues and PRs related to the HTTP Parser dependency or the http_parser binding.

Projects

None yet

Development

Successfully merging this pull request may close these issues.