[asterisk-dev] [Code Review] 3076: res_fax.c: fax detection caused crash on voice frame with no dsp

Scott Griepentrog reviewboard at asterisk.org
Thu Dec 19 11:24:01 CST 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3076/
-----------------------------------------------------------

(Updated Dec. 19, 2013, 11:24 a.m.)


Status
------

This change has been marked as submitted.


Review request for Asterisk Developers.


Bugs: ASTERISK-22942
    https://issues.asterisk.org/jira/browse/ASTERISK-22942


Repository: Asterisk


Description
-------

Reviewing the original submission of this code, r339465 (https://reviewboard.asterisk.org/r/1116/), it would appear that in fax_detect_framehook() the code block commented /* only handle VOICE and CONTROL frames */ that the intent of the original author was to stop processing (thus limiting overhead) of frames when certain no-go conditions where met.  These include unsupported formats, and unsupported frame types.  A check for no dsp is made, but curiously drops to the next code block on a break.  This patch constitutes my reinterpretation of the original authors intent of this work, specifically, stop processing the frame (by returning it) when no dsp is present.


Diffs
-----

  /branches/11/res/res_fax.c 404041 

Diff: https://reviewboard.asterisk.org/r/3076/diff/


Testing
-------


Thanks,

Scott Griepentrog

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131219/4f939927/attachment.html>


More information about the asterisk-dev mailing list