• Show log

    Commit

  • Hash : a8e98a23
    Author : Peng Huang
    Date : 2021-07-10T15:25:20

    Fix gl::Context::unMakeCurrent crashes
    
    The crash is because Display::makeCurrent() may fail, in that case,
    egl_stubs.cpp will not update the current context in global_state and
    Thread accordingly. And then Context::refCount could be reach 0,
    and be released, however egl_stubs.cpp still thinks the context is
    current, and then user-after-free happens.
    
    This CL fixes the problem by updating current context of Thread in
    Display::makeCurrent, and reading the current context of Thread in
    egl_stubs.cpp and setting it to global_state.
    
    Bug: chromium:1171371
    Change-Id: Ifc5fffb0e4902c9c72514839d03e5783d50fe283
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3017210
    Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>
    Reviewed-by: Geoff Lang <geofflang@chromium.org>
    Commit-Queue: Peng Huang <penghuang@chromium.org>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/angle.git
    Git SSH git@git.kmx.io:kc3-lang/angle.git
    Public access ? public
    Description

    A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.

    Homepage

    Github

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags