Changeset 255171 in webkit
- Timestamp:
- Jan 27, 2020 1:46:35 PM (4 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r255169 r255171 1 2020-01-27 David Kilzer <ddkilzer@apple.com> 2 3 REGRESSION (r250009): testair crashes in (anonymous namespace)::matchAll 4 <https://webkit.org/b/206797> 5 <rdar://problem/58893221> 6 7 Reviewed by Yusuke Suzuki. 8 9 * b3/air/testair.cpp: 10 ((anonymous namespace)::matchAll): Don't replace `str` in the 11 body of the for loop since `match` references it. 12 1 13 2020-01-27 Ryan Haddad <ryanhaddad@apple.com> 2 14 -
trunk/Source/JavaScriptCore/b3/air/testair.cpp
r253250 r255171 2070 2070 Vector<String> matches; 2071 2071 std::smatch match; 2072 for (std::string str = source.data(); std::regex_search(str, match, regex); ) {2072 for (std::string str = source.data(); std::regex_search(str, match, regex); str = match.suffix()) { 2073 2073 ASSERT(match.size() == 1); 2074 str = match.suffix();2075 2074 matches.append(match[0].str().c_str()); 2076 2075 }
Note: See TracChangeset
for help on using the changeset viewer.