]> 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 17:02:35 +0000 (12:02 -0500)
commit8e7a8e873400c16f8026c3c6482c6624a9067334
tree791870bbc09933ed513bc9899f1c20b546293fb6
parent6aea312a55888419c32253df45909354467c009d
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