diff options
author | Richard Mudgett <rmudgett@digium.com> | 2016-12-23 12:10:40 -0600 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-12-23 13:10:04 -0600 |
commit | 9dcf9e9cea87b7bf7f2bbdbaddd51377a6138bfa (patch) | |
tree | 893b7012fcf9a148bd784e02ae52a80d502b1497 /formats/format_vox.c | |
parent | e2fa3c7edabd52b62830a32930b0b4aaf4bcb9ac (diff) |
bridge_native_rtp.c: Fix native rtp bridge data race.
native_rtp_bridge_compatible() didn't lock the bridge channels before
checking the channels for native bridging ability. As a result, one of
the channel's native format capabilities structure got replaced out from
under the native bridge check. Use of a stale pointer to freed memory
causes bad things to happen.
MALLOC_DEBUG, DO_CRASH, and the
tests/channels/pjsip/transfers/blind_transfer/caller_direct_media
testsuite test caught this.
* Add missing channel locking in native_rtp_bridge_compatible().
Change-Id: If25fdb3ac8e85563c4857fb8216b3d9dc3d0fa53
Diffstat (limited to 'formats/format_vox.c')
0 files changed, 0 insertions, 0 deletions