• jgruber's avatar
    [stubs] Add a test for canary crashes in SubStringStub · 0ce95e08
    jgruber authored
    These crashes were caused by an invalid pointer stored in a tagged
    variable in SubStringStub. This can be reproduced by calling the stub on
    an external string and ensuring GC kicks in on the subsequent
    allocation.
    
    Only the TurboFan implementation of SubStringStub is affected, the current
    PlatformStub implementation handles this case just fine.
    
    BUG=chromium:649967
    
    Review-Url: https://codereview.chromium.org/2374603003
    Cr-Commit-Position: refs/heads/master@{#39772}
    0ce95e08
test-strings.cc 52.6 KB