[asterisk-bugs] [JIRA] (ASTERISK-30240) app voicemail odbc build error with gcc 11.1

Friendly Automation (JIRA) noreply at issues.asterisk.org
Tue Dec 20 08:58:52 CST 2022


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

Friendly Automation commented on ASTERISK-30240:
------------------------------------------------

Change 19728 merged by George Joseph:
app_voicemail_odbc: Fix string overflow warning.

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

> app voicemail odbc build error with gcc 11.1
> --------------------------------------------
>
>                 Key: ASTERISK-30240
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30240
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_voicemail/ODBC
>    Affects Versions: 16.28.0, 18.14.0
>            Reporter: Michael Bradeen
>
> compile error when app voicemail w/ odbc is enabled via menuselect:
> {noformat}
> In function ‘ast_copy_string’,
>     inlined from ‘remove_file’ at app_voicemail_odbc.c:4492:3,
>     inlined from ‘vm_tempgreeting’ at app_voicemail_odbc.c:10860:3,
>     inlined from ‘vm_options’ at app_voicemail_odbc.c:10693:10,
>     inlined from ‘vm_execmain’ at app_voicemail_odbc.c:12124:10:
> /usr/src/asterisk/asterisk-18/include/asterisk/strings.h:412:295: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
>   412 | AST_INLINE_API(
>       |                                                                                                                                                                                                                                                                                                       ^     
> app_voicemail_odbc.c: In function ‘vm_execmain’:
> app_voicemail_odbc.c:4484:14: note: at offset -1 into destination object ‘fn’ of size 4096
>  4484 |         char fn[PATH_MAX];
>       |              ^~
> cc1: all warnings being treated as errors
> make[1]: *** [/usr/src/asterisk/asterisk-18/Makefile.rules:150: app_voicemail_odbc.o] Error 1
> make[1]: Leaving directory '/usr/src/asterisk/asterisk-18/apps'
> make: *** [Makefile:396: apps] Error 2
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list