[asterisk-bugs] [JIRA] (ASTERISK-30349) app_if: Format truncation error
Friendly Automation (JIRA)
noreply at issues.asterisk.org
Tue Dec 13 09:29:52 CST 2022
[ https://issues.asterisk.org/jira/browse/ASTERISK-30349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=260888#comment-260888 ]
Friendly Automation commented on ASTERISK-30349:
------------------------------------------------
Change 19721 merged by Joshua Colp:
app_if: Fix format truncation errors.
[https://gerrit.asterisk.org/c/asterisk/+/19721|https://gerrit.asterisk.org/c/asterisk/+/19721]
> 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
>
> {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