Skip to content

Fix crash in RawPropsKeyMap::at() for out-of-bounds prop name lengths - #55534

Closed
javache wants to merge 1 commit into
react:mainfrom
javache:export-D93094839
Closed

Fix crash in RawPropsKeyMap::at() for out-of-bounds prop name lengths#55534
javache wants to merge 1 commit into
react:mainfrom
javache:export-D93094839

Conversation

@javache

@javache javache commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Summary:
Replace react_native_assert calls with real bounds checks in RawPropsKeyMap::at() and RawPropsKey::render() to prevent SIGILL/SIGTRAP crashes. In at(), an invalid length now returns kRawPropsValueIndexEmpty instead of trapping. In render(), an overlong prop name is clamped to kPropNameLengthHardCap - 1 instead of asserting.

Changelog: [Internal]

Differential Revision: D93094839

Summary:
Replace react_native_assert calls with real bounds checks in RawPropsKeyMap::at() and RawPropsKey::render() to prevent SIGILL/SIGTRAP crashes. In at(), an invalid length now returns kRawPropsValueIndexEmpty instead of trapping. In render(), an overlong prop name is clamped to kPropNameLengthHardCap - 1 instead of asserting.

Changelog: [Internal]

Differential Revision: D93094839
@meta-codesync

meta-codesync Bot commented Feb 12, 2026

Copy link
Copy Markdown

@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D93094839.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 12, 2026
@meta-codesync meta-codesync Bot closed this in 369a817 Feb 13, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @javache in 369a817

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Feb 13, 2026
@meta-codesync

meta-codesync Bot commented Feb 13, 2026

Copy link
Copy Markdown

This pull request has been merged in 369a817.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants