FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

stream: validate broadcast writer writev chunks by trivikr · Pull Request #63300 · nodejs/node · GitHub

/ node Public

stream: validate broadcast writer writev chunks - #63300

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
trivikr:stream-iter-broadcast-writev
May 16, 2026
Merged

stream: validate broadcast writer writev chunks#63300
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
trivikr:stream-iter-broadcast-writev

Conversation

trivikr commented May 14, 2026

Copy link
Copy Markdown
Member

Fixes BroadcastWriter writev() and writevSync() input validation so
non-array chunks values throw ERR_INVALID_ARG_TYPE before reaching
convertChunks().

Previously, writer.writev('abc') treated the string as array-like and wrote
abc, while writer.writev(42) resolved as an empty batch.

Fixes: #63299


Assisted-by: openai:gpt-5.5

Validate BroadcastWriter writev() and writevSync() inputs before
converting chunks so non-array values throw ERR_INVALID_ARG_TYPE.

Fixes: nodejs#63299

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/streams

nodejs-github-bot added needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem. labels May 14, 2026
trivikr self-assigned this May 14, 2026
trivikr added the request-ci Add this label to start a Jenkins CI on a PR. label May 14, 2026

codecov Bot commented May 14, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.04%. Comparing base (c24e552) to head (11dc64d).
⚠️ Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #63300      +/-   ##
==========================================
- Coverage   90.05%   90.04%   -0.01%     
==========================================
  Files         714      714              
  Lines      225247   225253       +6     
  Branches    42578    42581       +3     
==========================================
- Hits       202842   202830      -12     
- Misses      14181    14220      +39     
+ Partials     8224     8203      -21     
Files with missing lines Coverage Δ
lib/internal/streams/iter/broadcast.js 84.76% <100.00%> (+0.11%) ⬆️

... and 34 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 14, 2026

This comment was marked as outdated.

trivikr added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label May 14, 2026

nodejs-github-bot commented May 14, 2026
edited by jasnell
Loading

Copy link
Copy Markdown
Collaborator

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm

jasnell added the commit-queue Add this label to land a pull request using GitHub Actions. label May 15, 2026
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 16, 2026
nodejs-github-bot merged commit a6696e2 into nodejs:main May 16, 2026
96 of 98 checks passed

Copy link
Copy Markdown
Collaborator

Landed in a6696e2

aduh95 pushed a commit that referenced this pull request May 19, 2026
Validate BroadcastWriter writev() and writevSync() inputs before
converting chunks so non-array values throw ERR_INVALID_ARG_TYPE.

Fixes: #63299

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: #63300
Fixes: #63299
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
aduh95 pushed a commit that referenced this pull request May 19, 2026
Validate BroadcastWriter writev() and writevSync() inputs before
converting chunks so non-array values throw ERR_INVALID_ARG_TYPE.

Fixes: #63299

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: #63300
Fixes: #63299
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
trivikr deleted the stream-iter-broadcast-writev branch May 27, 2026 07:49
aduh95 pushed a commit to aduh95/node that referenced this pull request Jul 30, 2026
Validate BroadcastWriter writev() and writevSync() inputs before
converting chunks so non-array values throw ERR_INVALID_ARG_TYPE.

Fixes: nodejs#63299

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: nodejs#63300
Fixes: nodejs#63299
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
aduh95 pushed a commit that referenced this pull request Aug 6, 2026
Validate BroadcastWriter writev() and writevSync() inputs before
converting chunks so non-array values throw ERR_INVALID_ARG_TYPE.

Fixes: #63299

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: #63300
Backport-PR-URL: #64675
Fixes: #63299
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stream/iter: BroadcastWriter writev methods accept non-sequence chunks

5 participants


Back | FazBrowse Home | New Git URL