• Xida Chen's avatar
    [PaintWorklet] Speculate fix for a null-deference in CSSPaintDefinition::Paint · 14f4cf3d
    Xida Chen authored
    It appears that under certain conditions (ASAN), the |script_state_|
    in the CSSPaintDefinition is nullptr. Notice that the |script_state_|
    itself is a scroped_refptr, it being null indicates that the
    CSSPaintDefinition object itself is null.
    
    The cluster fuzz seems to be able to repro this with a 29KB minimized
    test case and I can never repro it locally with the same build args.
    This CL is a speculate fix, and let's wait for fuzzer to tell us whether
    the problem is fixed by this or not.
    
    Bug: 806082
    Change-Id: Iad22be412709d697d42e111cbf74de972b094918
    Reviewed-on: https://chromium-review.googlesource.com/891598Reviewed-by: default avatarStephen McGruer <smcgruer@chromium.org>
    Commit-Queue: Xida Chen <xidachen@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#532932}
    14f4cf3d
PaintWorklet.cpp 5.05 KB