Files
asterisk/main
Mike Bradeen ee887b66bb sched: fix and test a double deref on delete of an executing call back
sched: Avoid a double deref when AST_SCHED_DEL_UNREF is called on an
executing call-back. This is done by adding a new variable 'rescheduled'
to the struct sched which is set in ast_sched_runq and checked in
ast_sched_del_nonrunning. ast_sched_del_nonrunning is a replacement for
now deprecated ast_sched_del which returns a new possible value -2
if called on an executing call-back with rescheduled set. ast_sched_del
is modified to call ast_sched_del_nonrunning to maintain existing code.
AST_SCHED_DEL_UNREF is also updated to look for the -2 in which case it
will not throw a warning or invoke refcall.
test_sched: Add a new unit test sched_test_freebird that will check the
reference count in the resolved scenario.

ASTERISK-29698

Change-Id: Icfb16b3acbc29cf5b4cef74183f7531caaefe21d
2022-01-28 13:35:29 -06:00
..
2021-11-15 18:31:44 -06:00
2021-11-15 18:31:44 -06:00
2021-12-02 15:00:33 -06:00
2020-05-05 08:56:28 -04:00
2016-10-27 09:53:55 -04:00
2020-05-05 08:56:28 -04:00
2021-11-15 18:31:44 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-11-18 16:12:45 -06:00
2020-04-06 10:58:41 -05:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-11-15 18:31:44 -06:00
2021-11-15 18:31:44 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2022-01-05 11:44:53 -06:00
2022-01-05 11:22:11 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2016-10-27 09:53:55 -04:00
2020-06-10 13:56:45 -05:00
2021-12-02 15:00:33 -06:00
2016-10-27 09:53:55 -04:00
2021-12-02 15:00:33 -06:00
2021-11-15 18:31:44 -06:00
2021-11-15 18:31:44 -06:00
2021-11-15 18:31:44 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2016-10-27 09:53:55 -04:00
2021-11-15 18:31:44 -06:00
2021-11-15 18:31:44 -06:00
2016-10-27 09:53:55 -04:00
2021-12-02 15:00:33 -06:00
2017-12-20 12:40:01 -05:00
2022-01-05 11:44:53 -06:00
2021-12-02 15:00:33 -06:00
2016-10-27 09:53:55 -04:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2016-10-27 09:53:55 -04:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-11-15 18:31:44 -06:00
2021-12-02 15:00:33 -06:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2016-10-27 09:53:55 -04:00
2021-12-02 15:00:33 -06:00
2016-10-27 09:53:55 -04:00
2021-12-02 15:00:33 -06:00
2016-10-27 09:53:55 -04:00
2021-11-15 18:31:44 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-11-18 14:46:57 -06:00
2021-11-18 14:46:57 -06:00
2022-01-05 11:44:53 -06:00
2022-01-05 11:44:53 -06:00
2021-11-15 18:31:44 -06:00
2016-10-27 09:53:55 -04:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-12-02 15:00:33 -06:00
2021-11-15 18:31:44 -06:00
2021-12-02 15:00:33 -06:00
2021-11-15 18:31:44 -06:00
2021-12-02 15:00:33 -06:00
2018-07-23 06:47:31 -05:00
2021-11-29 09:05:26 -06:00