Fix push_back() to shared fbstring bug.
Summary: The following asserts: fbstring str(1337, 'f'); fbstring cp = str; cp.push_back('f'); This is problematic since ml_.capacity() != capacity() inside fbstring_core for shared strings, which causes us not to un-share prior to push_back. Test Plan: Existing tests, add unittest case. Reviewed By: tudorb@fb.com FB internal diff: D580267
Showing
Please register or sign in to comment