[asterisk-bugs] [JIRA] (ASTERISK-29712) format_mp3: GCC 11.2 found an outside array bounds
Alexander Traud (JIRA)
noreply at issues.asterisk.org
Thu Oct 28 10:05:49 CDT 2021
Alexander Traud created ASTERISK-29712:
------------------------------------------
Summary: 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: 18.7.1, 16.21.1
Environment: Ubuntu 21.10
Reporter: Alexander Traud
{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