• jrummell's avatar
    Verify promise type before casting. · ddb0fcf8
    jrummell authored
    If a CDM calls the wrong Resolved() method to resolve a promise, the
    promise is cast to the wrong type and causes a crash. This fixes the
    problem by verifying that the promise is the correct type before
    casting it.
    
    BUG=408319
    TEST=existing EME tests pass
    
    Review URL: https://codereview.chromium.org/515753002
    
    Cr-Commit-Position: refs/heads/master@{#292440}
    ddb0fcf8
cdm_promise.cc 5.36 KB