mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out "Fixes NSDataBigString length calculation" (#46011)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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 https://github.com/facebook/react-native/pull/44900 while we wait for https://github.com/facebook/react-native/pull/45966 to land Reviewed By: makovkastar Differential Revision: D61246120 fbshipit-source-id: 8c205efe9d29cd34f24676c4a48d55f0493d73ab
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f9abe96d19
commit
7bb7a6037b
@@ -34,8 +34,8 @@ static NSData *ensureNullTerminated(NSData *source)
|
||||
|
||||
NSDataBigString::NSDataBigString(NSData *data)
|
||||
{
|
||||
m_length = [data length];
|
||||
m_data = ensureNullTerminated(data);
|
||||
m_length = MAX([m_data length], 1) - 1;
|
||||
}
|
||||
|
||||
} // namespace facebook::react
|
||||
|
||||
Reference in New Issue
Block a user