-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix multiline TextInput crash when inserting/removing lots of text #29307
Conversation
Base commit: e206e34 |
Base commit: e206e34 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoshuaGross has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
This pull request was successfully merged by @tido64 in 15dda0a. When will my fix make it into a release? | Upcoming Releases |
Summary
Multiline
TextInput
can crash when really long texts are inserted and removed quickly. This is caused by the fact that-[NSAttributedString string]
doesn't really return a copy, and may mutate the string while it is being used byconvertIdToFollyDynamic
. See microsoft#489 (comment) for more details on the issue.This issue was originally reported in microsoft#486 and was fixed in microsoft#489.
Changelog
[iOS] [Fixed] - Fix multiline TextInput crash when inserting/removing lots of text
Test Plan