Skip to content

Commit

Permalink
Back out "Fixes NSDataBigString length calculation" (#46011)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #46011

Backing out D58561775 in the meantime while we are trying to do proper fix in Hermes engine D61058869

Changelog: [Internal]
Temporarily revert this diff #44900 while we wait for #45966 to land

Reviewed By: makovkastar

Differential Revision: D61246120

fbshipit-source-id: 8c205efe9d29cd34f24676c4a48d55f0493d73ab
  • Loading branch information
realsoelynn authored and facebook-github-bot committed Aug 14, 2024
1 parent f9abe96 commit 7bb7a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/React/CxxBridge/NSDataBigString.mm
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@

NSDataBigString::NSDataBigString(NSData *data)
{
m_length = [data length];
m_data = ensureNullTerminated(data);
m_length = MAX([m_data length], 1) - 1;
}

} // namespace facebook::react

0 comments on commit 7bb7a60

Please sign in to comment.