Skip to content

Commit

Permalink
Back out "Fixes NSDataBigString length calculation" (facebook#46011)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#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 facebook#44900 while we wait for facebook#45966 to land

Differential Revision: D61246120
  • Loading branch information
realsoelynn authored and facebook-github-bot committed Aug 14, 2024
1 parent f9abe96 commit 27cad40
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 27cad40

Please sign in to comment.