[asterisk-bugs] [JIRA] (ASTERISK-30349) app_if: Format truncation error

Friendly Automation (JIRA) noreply at issues.asterisk.org
Tue Dec 13 09:29:51 CST 2022


    [ https://issues.asterisk.org/jira/browse/ASTERISK-30349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=260886#comment-260886 ] 

Friendly Automation commented on ASTERISK-30349:
------------------------------------------------

Change 19722 merged by Joshua Colp:
app_if: Fix format truncation errors.

[https://gerrit.asterisk.org/c/asterisk/+/19722|https://gerrit.asterisk.org/c/asterisk/+/19722]

> 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