[asterisk-dev] app_swift crash asterisk 11.20.0-rc1

Joshua Colp jcolp at digium.com
Wed Mar 2 05:28:58 CST 2016


Jeremy Kister wrote:
> On 3/1/2016 8:21 PM, Jeremy Kister wrote:
>> FYI, the problem is caused by the translate.c changes in commit
>> c7f7c7c35d
>>
>> https://code.asterisk.org/code/changelog/asterisk?cs=c7f8c8c35db2fe1c4ce9f27c4a28649452dc5463
>>
>
> [cant keep up with myself here--]
>
> the exact changes causing pain appear on lines 516-521
>
> revering back to 'framein(p,out);' on line 515 makes app_swift happy again.
>
> /me begs.

This has probably exposed a bug in app_swift where the Asterisk frame it 
generates is not completely zeroed out. As a result depending on the 
state of the memory it may think that it is a chain of frames when 
really there is not. This causes the above change to try to translate it 
and since it points to nothing, it crashes.

The frame in app_swift should be memset to zeroes to ensure it is 
completely clean.

Cheers,

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org




More information about the asterisk-dev mailing list