Skip to content

fix(0.81): Add value-initialization in RCTComponentData#2999

Merged
Saadnajmi merged 5 commits into
microsoft:0.81-stablefrom
amgleitman:0.81-rctcomponentdata-ubsan-fix
Jun 26, 2026
Merged

fix(0.81): Add value-initialization in RCTComponentData#2999
Saadnajmi merged 5 commits into
microsoft:0.81-stablefrom
amgleitman:0.81-rctcomponentdata-ubsan-fix

Conversation

@amgleitman

Copy link
Copy Markdown
Member

Summary:

This fixes a UBSan error.

Test Plan:

I added a unit test that was written by Copilot. You can get it to fail by undoing this change and running the tests in Xcode with UBSan turned on.

@amgleitman amgleitman requested a review from a team as a code owner June 26, 2026 22:09
@Saadnajmi

Copy link
Copy Markdown
Collaborator

I think we can exclude the unit tests and pbxproj changes and just add a // [macOS] comment, the native RNTester tests are pretty dead

Comment thread packages/rn-tester/RNTesterUnitTests/RCTComponentDataTests.m
Comment thread packages/react-native/React/Views/RCTComponentData.mm Outdated
@Saadnajmi Saadnajmi merged commit 67d91f8 into microsoft:0.81-stable Jun 26, 2026
22 of 24 checks passed
Saadnajmi added a commit that referenced this pull request Jun 26, 2026
## Summary
- revert the generated `chore(release): publish 0.81.8` bump commit so
repo versions return to the last published baseline (`0.81.7`)
- keep a single Nx patch version plan to retry releasing `0.81.8`

## Why
`0.81.8` was tagged in git but did not fully publish to npm. Retrying
from `0.81.7` + a patch version plan is the same working pattern used in
the previous release-retry PR.

## Changes since v0.81.7
- chore(0.81): bump fmt to 12.1.0 to fix Xcode 26.4 (#2997)
- fix(0.81): Add value-initialization in RCTComponentData (#2999)
- ci(0.81): pass --access public to npm publish (#3000)

## Validation
- `yarn exec -- nx release --dry-run --verbose`
  - resolves current versions as `0.81.7`
- plans bump to `0.81.8` for both `react-native-macos` and
`@react-native-macos/virtualized-lists`

🤖 Generated with Copilot CLI

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants