[Asterisk-code-review] channel.c: Fix segfault with Monitor(wav,file,i) (asterisk[16])

Corey Farrell asteriskteam at digium.com
Sun Jan 20 12:52:00 CST 2019


Corey Farrell has uploaded a new patch set (#2) to the change originally created by Valentin Vidić. ( https://gerrit.asterisk.org/10895 )

Change subject: channel.c: Fix segfault with Monitor(wav,file,i)
......................................................................

channel.c: Fix segfault with Monitor(wav,file,i)

If the Monitor is started with the i option the read_stream will be
NULL. One code path in channel.c checks if write_stream is set but than
uses read_stream instead causing a segfault.

ASTERISK-28249

Change-Id: I1bae9126537be54895c7fea2d08dd9488d8cc525
---
M main/channel.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/95/10895/2
-- 
To view, visit https://gerrit.asterisk.org/10895
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I24e1b3debffe2a7ff18f345d5a1da1f51ecd67a1
Gerrit-Change-Number: 10895
Gerrit-PatchSet: 2
Gerrit-Owner: Valentin Vidić <vvidic at valentin-vidic.from.hr>
Gerrit-Reviewer: Friendly Automation (1000185)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190120/907a575e/attachment-0001.html>


More information about the asterisk-code-review mailing list