[asterisk-bugs] [JIRA] (ASTERISK-30349) app_if: Format truncation error
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Thu Dec 15 07:03:56 CST 2022
[ https://issues.asterisk.org/jira/browse/ASTERISK-30349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asterisk Team updated ASTERISK-30349:
-------------------------------------
Target Release Version/s: 18.16.0
> app_if: Format truncation error
> --------------------------------
>
> Key: ASTERISK-30349
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-30349
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Applications/app_if
> Affects Versions: GIT
> Environment: Fedora 37
> GCC 12.2.1
> Reporter: George Joseph
> Assignee: N A
> Target Release: 18.16.0, 20.1.0
>
>
> {code}
> app_if.c: In function 'if_helper':
> app_if.c:270:48: error: '%s' directive output may be truncated writing up to 63 bytes into a region of size 61 [-Werror=format-truncation=]
> 270 | snprintf(varname, sizeof(varname), "%s_%s", prefix, label);
> | ^~
> app_if.c:270:9: note: 'snprintf' output between 4 and 67 bytes into a destination of size 64
> 270 | snprintf(varname, sizeof(varname), "%s_%s", prefix, label);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list