[asterisk-bugs] [JIRA] (ASTERISK-30349) app_if: Format truncation error
George Joseph (JIRA)
noreply at issues.asterisk.org
Mon Dec 12 08:48:51 CST 2022
[ https://issues.asterisk.org/jira/browse/ASTERISK-30349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Joseph updated ASTERISK-30349:
-------------------------------------
Status: Open (was: Triage)
> 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
>
> {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