Changeset 255171 in webkit


Ignore:
Timestamp:
Jan 27, 2020 1:46:35 PM (4 years ago)
Author:
ddkilzer@apple.com
Message:

REGRESSION (r250009): testair crashes in (anonymous namespace)::matchAll
<https://webkit.org/b/206797>
<rdar://problem/58893221>

Reviewed by Yusuke Suzuki.

  • b3/air/testair.cpp:

((anonymous namespace)::matchAll): Don't replace str in the
body of the for loop since match references it.

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r255169 r255171  
     12020-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
    1132020-01-27  Ryan Haddad  <ryanhaddad@apple.com>
    214
  • trunk/Source/JavaScriptCore/b3/air/testair.cpp

    r253250 r255171  
    20702070    Vector<String> matches;
    20712071    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()) {
    20732073        ASSERT(match.size() == 1);
    2074         str = match.suffix();
    20752074        matches.append(match[0].str().c_str());
    20762075    }
Note: See TracChangeset for help on using the changeset viewer.