]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjproject_bundled: Add patch for pj_atomic crashes
authorGeorge Joseph <gjoseph@digium.com>
Sun, 25 Mar 2018 18:12:39 +0000 (12:12 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 28 Mar 2018 16:32:05 +0000 (10:32 -0600)
commitc63a2e28f1be775cc431ee0661a2e97b0cc7f057
tree35f45e5dfdce9272e15d9e15eebe443dfb32e942
parent2041d56d58e24ca4ab595be23a508c9fb1bf72c9
pjproject_bundled:  Add patch for pj_atomic crashes

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
third-party/pjproject/patches/0070-os_core_unix-Set-mutex-NULL-in-atomic-destroy-and-ad.patch [new file with mode: 0644]