Skip to content
Snippets Groups Projects
  • George Joseph's avatar
    a87141dd
    pjproject_bundled: Add patch for pj_atomic crashes · a87141dd
    George Joseph authored
    There have been some crashes in the past where something attempts
    to use a pj_atomic after it's already been destroyed.  This patch
    tries to prevent it by making sure that pj_atomic_destroy sets
    its mutex to NULL when it's done.  The pj_mutex functions already check
    for a NULL mutex and just return PJ_EINVAL.
    
    Teluu also added some checks to the win32 implementation as well.
    
    Change-Id: Id25f70b79fdedf44ead6e6e1763a4417d3b3f825
    a87141dd
    History
    pjproject_bundled: Add patch for pj_atomic crashes
    George Joseph authored
    There have been some crashes in the past where something attempts
    to use a pj_atomic after it's already been destroyed.  This patch
    tries to prevent it by making sure that pj_atomic_destroy sets
    its mutex to NULL when it's done.  The pj_mutex functions already check
    for a NULL mutex and just return PJ_EINVAL.
    
    Teluu also added some checks to the win32 implementation as well.
    
    Change-Id: Id25f70b79fdedf44ead6e6e1763a4417d3b3f825
0070-os_core_unix-Set-mutex-NULL-in-atomic-destroy-and-ad.patch 3.57 KiB