[asterisk-bugs] [JIRA] (ASTERISK-29712) format_mp3: GCC 11.2 found an outside array bounds

Sean Bright (JIRA) noreply at issues.asterisk.org
Fri Oct 29 14:26:49 CDT 2021


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

Sean Bright edited comment on ASTERISK-29712 at 10/29/21 2:26 PM:
------------------------------------------------------------------

[~traud] - in this issue you say you fail to compile format_mp3, but in ASTERISK-29687 you say that you have no problems compiling it. Can you help me understand?

*Edit:* on second reading, you don't say that it fails to compile, but these warnings would prevent a compile if {{--enable-dev-mode}} was set.


was (Author: seanbright):
[~traud] - in this issue you say you fail to compile format_mp3, but in ASTERISK-29687 you say that you have no problems compiling it. Can you help me understand?

> format_mp3: GCC 11.2 found an outside array bounds
> --------------------------------------------------
>
>                 Key: ASTERISK-29712
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29712
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Addons/format_mp3
>    Affects Versions: 16.21.1, 18.7.1
>         Environment: Ubuntu 21.10
>            Reporter: Alexander Traud
>            Assignee: Sean Bright
>
> {code}
>    [CC] mp3/layer3.c -> mp3/layer3.o
> mp3/layer3.c: In function ‘III_dequantize_sample’:
> mp3/layer3.c:951:12: warning: array subscript 576 is outside array bounds of ‘double[576]’ [-Warray-bounds]
>   951 |     for(i=(&xr[SBLIMIT][0]-xrpnt)>>1;i;i--) {
>       |            ^~~~~~~~~~~~~~~
> mp3/layer3.c:611:57: note: while referencing ‘xr’
>   611 | static int III_dequantize_sample(struct mpstr *mp, real xr[SBLIMIT][SSLIMIT],int *scf,
> {code}Because I have no idea how the patch-contribution process works for software on {{svn.digium.com}}, I cannot proceed from here.



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



More information about the asterisk-bugs mailing list