[asterisk-bugs] [JIRA] (ASTERISK-29803) pbx_variables: cp4 variables is used uninitialized
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Thu Feb 3 06:49:10 CST 2022
[ https://issues.asterisk.org/jira/browse/ASTERISK-29803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asterisk Team updated ASTERISK-29803:
-------------------------------------
Target Release Version/s: 16.24.0
> pbx_variables: cp4 variables is used uninitialized
> --------------------------------------------------
>
> Key: ASTERISK-29803
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-29803
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: PBX/General
> Affects Versions: 18.9.0
> Environment: Debian 11
> Reporter: N A
> Assignee: N A
> Severity: Critical
> Target Release: 16.24.0
>
>
> GCC must be getting more stringent every day.
> Asterisk no longer compiles because of this:
> {noformat}
> pbx_variables.c: In function ‘pbx_substitute_variables_helper_full_location’:
> pbx_variables.c:778:7: error: ‘cp4’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> 778 | if (cp4) {
> | ^
> pbx_variables.c:694:10: note: ‘cp4’ was declared here
> 694 | char *cp4;
> | ^~~
> {noformat}
> Initializing cp4 to NULL fixes the issue.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list