[Asterisk-code-review] Change in asterisk[13]: bridge.c: NULL app causes crash during attended transfer

Kevin Harwell (Code Review) asteriskteam at digium.com
Thu Apr 16 11:13:02 CDT 2015


Kevin Harwell has uploaded a new patch set (#2).

Change subject: bridge.c: NULL app causes crash during attended transfer
......................................................................

bridge.c: NULL app causes crash during attended transfer

Due to a race condition there was a chance that during an attended transfer the
channel's application would return NULL. This, of course, would cause a crash
when attempting to access the memory. This patch retrieves the channel's app
at an earlier time in processing in hopes that the app name is available.
However, if is not then "unknown" is used instead. Since some string value
should now always be present the crash can no longer occur.

ASTERISK-24869 #close
Reported by: viniciusfontes
Review: https://gerrit.asterisk.org/#/c/133/

Change-Id: I5134b84c4524906d8148817719d76ffb306488ac
---
M main/bridge.c
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/33/133/2
-- 
To view, visit https://gerrit.asterisk.org/133
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I5134b84c4524906d8148817719d76ffb306488ac
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>



More information about the asterisk-code-review mailing list