commit | b5a06d2665491e5ef21920c0c83a08822211dc5e | [log] [tgz] |
---|---|---|
author | Arthur O'Dwyer <arthur.j.odwyer@gmail.com> | Tue Apr 27 09:10:04 2021 -0400 |
committer | Copybara-Service <copybara-worker@google.com> | Sun May 09 12:17:07 2021 -0700 |
tree | 8bfd17884ea0f0bee83c748ef4b875a8aa0d88e8 | |
parent | 30b0a484fe2d9378ef8ffbde9fa6a70a6756c80f [diff] |
[libc++] [LIBCXX-DEBUG-FIXME] Fix an iterator-invalidation issue in string::assign. This appears to be a bug in our string::assign: when assigning into a longer string, from a shorter snippet of itself, we invalidate iterators before doing the copy. We should invalidate them afterward. Also drive-by improve the formatting of a function header. Differential Revision: https://reviews.llvm.org/D101675 GitOrigin-RevId: db9425cb060bd076fcdcbb5a37bfd992deff2086