New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 727144 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , All , Mac
Pri: 1
Type: Bug



Sign in to add a comment

Stack-overflow in blink::SelectorChecker::MatchSelector

Project Member Reported by ClusterFuzz, May 28 2017

Issue description

Detailed report: https://clusterfuzz.com/testcase?key=5386521040650240

Fuzzer: inferno_layout_test_unmodified
Job Type: mac_asan_content_shell
Platform Id: mac

Crash Type: Stack-overflow
Crash Address: 0x7fff4fb0aee8
Crash State:
  blink::SelectorChecker::MatchSelector
  
Sanitizer: address (ASAN)

Regressed: https://clusterfuzz.com/revisions?job=mac_asan_content_shell&range=338204:338244

Reproducer Testcase: https://clusterfuzz.com/download?testcase_id=5386521040650240


Issue filed automatically.

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.
 
Cc: msrchandra@chromium.org
Labels: M-60 Test-Predator-Wrong
Owner: esprehn@chromium.org
Status: Assigned (was: Untriaged)
Predator and CL did not provide any possible suspects.
Using Code Search for the file, "SelectorChecker.cpp" assigning to the concern owner.
Suspecting Commit#
https://chromium.googlesource.com/chromium/src/+/813bbc674ed1dc64cc40fb24c46944b51cf7c6bf

@esprehn -- Could you please look into the issue, kindly re-assign if this is not related to your changes.
Thank You.
Components: Blink>CSS
Labels: OS-All
Status: WontFix (was: Assigned)
The test case intentionally overflows the stack by chaining 32k attribute selectors:

var simpleCases = [
    ["[type=foobar i]",[]]];
for (var testCase of simpleCases) {
    var repeatedSelector = testCase[0];
    for (var i = 0; i < 32617; ++i) {
        repeatedSelector += testCase[0];
    }
    testSelectorVariants(repeatedSelector, testCase[1]);
}

There's lots of ways to do that in the engine, this isn't a bug.
Project Member

Comment 3 by ClusterFuzz, May 31 2017

Labels: OS-Linux
Project Member

Comment 4 by ClusterFuzz, Jul 14 2017

Labels: Needs-Feedback
ClusterFuzz testcase 5386521040650240 is still reproducing on tip-of-tree build (trunk).

If this testcase was not reproducible locally or unworkable, ignore this notification and we will file another bug soon with hopefully a better and workable testcase.

Otherwise, if this is not intended to be fixed (e.g. this is an intentional crash), please add ClusterFuzz-Ignore label to prevent future bug filing with similar crash stacktrace.

Sign in to add a comment