Skip to content

test_runner: prevent infinite loop on malformed v8 header#63124

Closed
fru1tworld wants to merge 1 commit into
nodejs:mainfrom
fru1tworld:fix/62693-test-runner-drain-loop
Closed

test_runner: prevent infinite loop on malformed v8 header#63124
fru1tworld wants to merge 1 commit into
nodejs:mainfrom
fru1tworld:fix/62693-test-runner-drain-loop

Conversation

@fru1tworld
Copy link
Copy Markdown

A child process emitting the v8 serializer header (FF 0F) followed by a payload length larger than the buffered data caused #drainRawBuffer() to spin forever. Detect the no-progress case and flush the remaining bytes as a test:stdout event.

Refs: #62693

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels May 5, 2026
@atlowChemi
Copy link
Copy Markdown
Member

Duplicate of #62704

@atlowChemi atlowChemi marked this as a duplicate of #62704 May 5, 2026
@atlowChemi atlowChemi closed this May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants