]> git.ipfire.org Git - thirdparty/asterisk.git/commit
test_res_pjsip_scheduler: Fix possible write after free in scheduler_policy.
authorCorey Farrell <git@cfware.com>
Tue, 13 Nov 2018 16:51:00 +0000 (11:51 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 13 Nov 2018 18:26:01 +0000 (13:26 -0500)
commit89d97da8a4651bd5ea41d1400806abc55bcbea5c
tree2ae809b1dceaa2292aca26061ae902d858d93bf7
parentff7a772395ee50d303959507b77b4f47fe8dfd9f
test_res_pjsip_scheduler: Fix possible write after free in scheduler_policy.

It's possible for a 4th task to be spawned before we cancel.  This
results in a write to the already freed test_data1.  Wait long enough to
verify success of the cancelation before freeing test_data1.

Change-Id: I057e2fcbe97f8a175e50890be89c28c20490a20f
tests/test_res_pjsip_scheduler.c