Skip to content

src: handle empty external string resources - #64750

Closed
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:module
Closed

src: handle empty external string resources#64750
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:module

Conversation

@Archkon

@Archkon Archkon commented Jul 26, 2026

Copy link
Copy Markdown

Fixes: #64749

V8 requires external string resources to have a non-null data pointer,
even when their length is zero. Empty vectors may return a null data
pointer, causing NewExternalTwoByte() to abort the process.

Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Jul 26, 2026
@Archkon

This comment was marked as spam.

@codecov

codecov Bot commented Jul 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.13%. Comparing base (2c4ea73) to head (ed8257f).
⚠️ Report is 238 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64750      +/-   ##
==========================================
- Coverage   90.15%   90.13%   -0.02%     
==========================================
  Files         743      743              
  Lines      242413   242420       +7     
  Branches    45657    45654       -3     
==========================================
- Hits       218537   218499      -38     
- Misses      15362    15433      +71     
+ Partials     8514     8488      -26     
Files with missing lines Coverage Δ
src/node_union_bytes.h 100.00% <100.00%> (ø)
src/util.cc 87.01% <100.00%> (+0.05%) ⬆️

... and 38 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.

@Archkon

This comment was marked as spam.

@Archkon

This comment was marked as spam.

@avivkeller avivkeller added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Aug 5, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 5, 2026
@nodejs-github-bot

This comment was marked as outdated.

@Archkon

This comment was marked as spam.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@avivkeller avivkeller added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 9, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 9, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@aduh95 aduh95 closed this Aug 10, 2026
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 pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loading an empty externalized builtin aborts the process

6 participants