[Home]

Summary:ASTERISK-04386: [patch] Modify chan_iax2.c to use ast_strdupa correctly
Reporter:Kevin P. Fleming (kpfleming)Labels:
Date Opened:2005-06-09 16:54:35Date Closed:2011-06-07 14:10:15
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I'm not sure why this hasn't hit other people yet, maybe my libc or gcc version, but chan_iax2 would seg when making an outbound call.<br />
<br />
A little digging brought me to the warning about alloca from the libc docs:<br />
<br />
Do not use alloca inside the arguments of a function call--you will get unpredictable results, because the stack space for the alloca would appear on the stack in the middle of the space for the function arguments. An example of what to avoid is foo (x, alloca (4), y). <br />


****** ADDITIONAL INFORMATION ******

Disclaimer on file
Comments:By: Russell Bryant (russell) 2005-06-13 16:41:19

not an issue in 1.0