Skip to content

src: handle empty external string resources#64750

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

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
Contributor

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

Archkon commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

@joyeecheung @addaleax @kvakil Could you take a look at this?

@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 3 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.

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++. 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

2 participants