[OpenSIPS-Devel] [OpenSIPS/opensips] 561392: dialog: Fix unsafe profile list iteration
noreply at github.com
Mon Sep 30 10:55:12 EDT 2019
Author: Liviu Chircu <liviu at opensips.org>
Date: 2019-09-30 (Mon, 30 Sep 2019)
dialog: Fix unsafe profile list iteration
The dialog->profile_links list _must always_ be walked after first
grabbing the dialog's lock, regardless of the current ref count.
Failing to do so may lead to invalid memory access, as the list
elements may get freed from other processes.
Many thanks to 46Labs for supporting this fix
More information about the Devel