[asterisk-bugs] [JIRA] (ASTERISK-24732) CLI "core show channel" gets "failed to extend from %d to %d" message for large native formats list.
Richard Mudgett (JIRA)
noreply at issues.asterisk.org
Wed Jan 28 13:17:35 CST 2015
Richard Mudgett created ASTERISK-24732:
------------------------------------------
Summary: CLI "core show channel" gets "failed to extend from %d to %d" message for large native formats list.
Key: ASTERISK-24732
URL: https://issues.asterisk.org/jira/browse/ASTERISK-24732
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Core/General
Affects Versions: 13.1.0
Reporter: Richard Mudgett
Occasionally I get "failed to extend from %d to %d" messages output. In this case I performed a CLI "core show channel CBRec/xxx" and got the message for the native formats on the channel.
The culprit is the ast_str variable is declared too small to list all formats. An audit is need for the uses of ast_str_alloca() when used to hold the format capabilities string. Currently ast_str_alloca(64) is used throughout the code base for this particular case. The 64 needs to be replaced with a define to eliminate the magic number and the number needs to be increased to 256 when all codecs are allowed.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list