[asterisk-bugs] [JIRA] (ASTERISK-23556) invert.c:167:24: warning: array subscript is above array bounds [-Warray-bounds]

Marcello Ceschia (JIRA) noreply at issues.asterisk.org
Mon Apr 7 14:29:20 CDT 2014


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

Marcello Ceschia commented on ASTERISK-23556:
---------------------------------------------

It is really simple to reproduce this issue:

gcc --version
gcc (SUSE Linux) 4.8.1 20130909 [gcc-4_8-branch revision 202388]

svn co -r 411441 http://svn.asterisk.org/svn/asterisk/branches/12 ast_12_temp
cd ast_12_temp/
 ./configure 
make

and you will get this warning



> invert.c:167:24: warning: array subscript is above array bounds [-Warray-bounds]
> --------------------------------------------------------------------------------
>
>                 Key: ASTERISK-23556
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23556
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 12.1.1
>            Reporter: Marcello Ceschia
>            Assignee: Marcello Ceschia
>            Severity: Critical
>
> {code}
>    [CC] invert.c -> invert.o
> invert.c: In function ‘invert_’:
> invert.c:167:24: warning: array subscript is above array bounds [-Warray-bounds]
>       rc[j] -= rc[k] * v[j + k * 10 - 11];
> {code}



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



More information about the asterisk-bugs mailing list