Skip to content

Bump JsRuntimeHost pin (napi string-getter underflow fix + 3 others)#1759

Merged
bkaradzic-microsoft merged 1 commit into
BabylonJS:masterfrom
bkaradzic-microsoft:chore/bump-jsruntimehost-197
Jun 12, 2026
Merged

Bump JsRuntimeHost pin (napi string-getter underflow fix + 3 others)#1759
bkaradzic-microsoft merged 1 commit into
BabylonJS:masterfrom
bkaradzic-microsoft:chore/bump-jsruntimehost-197

Conversation

@bkaradzic-microsoft

@bkaradzic-microsoft bkaradzic-microsoft commented Jun 12, 2026

Copy link
Copy Markdown
Member

What

Bump the JsRuntimeHost FetchContent pin to JRH main HEAD 272f6a9f.

This brings in a security fix in JsRuntimeHost — an integer underflow in the Chakra napi_get_value_string_* getters when a caller passes a non-null buffer with bufsize == 0 (bufsize - 1 underflows to SIZE_MAX, causing an out-of-bounds write):

It is a single-commit fast-forward over the pin currently on master (99457c03, JRH #181).

Verification

  • CMake reconfigure fetches JsRuntimeHost at 272f6a9f; the #197 fix is present in js_native_api_chakra.cc.
  • Playground (D3D11, Debug) configures and builds clean against JsRuntimeHost 272f6a9f (napi, JsRuntime, AppRuntime, and the polyfills relink; Playground.exe is produced).

Copilot AI review requested due to automatic review settings June 12, 2026 17:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates BabylonNative’s pinned JsRuntimeHost dependency to include upstream fixes (notably the Chakra napi_get_value_string_* underflow security fix) and additional upstream improvements.

Changes:

  • Bump JsRuntimeHost FetchContent GIT_TAG from c88625b6… to 272f6a9f….

Update the JsRuntimeHost FetchContent GIT_TAG to JRH main HEAD
(272f6a9f), which fixes an integer underflow in the Chakra
napi_get_value_string_* zero-bufsize handling (bufsize - 1 underflows
to SIZE_MAX, causing an out-of-bounds write):
BabylonJS/JsRuntimeHost#197

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@bghgary bghgary left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Reviewed by Copilot on behalf of @bghgary]

LGTM — clean single-commit fast-forward to #197 (JRH main HEAD). Title's + 3 others is inaccurate (the range is just #197); worth trimming to the underflow fix.

@bkaradzic-microsoft bkaradzic-microsoft merged commit 35c50dd into BabylonJS:master Jun 12, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants