{"action":"closed","issue":{"url":"https://api.github.com/repos/xiph/opus/issues/7","repository_url":"https://api.github.com/repos/xiph/opus","labels_url":"https://api.github.com/repos/xiph/opus/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/xiph/opus/issues/7/comments","events_url":"https://api.github.com/repos/xiph/opus/issues/7/events","html_url":"https://github.com/xiph/opus/issues/7","id":153860332,"number":7,"title":"Array subscript is above array bounds when compiling NLSF2A.c","user":{"login":"coltongit","id":17090935,"avatar_url":"https://avatars.githubusercontent.com/u/17090935?v=3","gravatar_id":"","url":"https://api.github.com/users/coltongit","html_url":"https://github.com/coltongit","followers_url":"https://api.github.com/users/coltongit/followers","following_url":"https://api.github.com/users/coltongit/following{/other_user}","gists_url":"https://api.github.com/users/coltongit/gists{/gist_id}","starred_url":"https://api.github.com/users/coltongit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coltongit/subscriptions","organizations_url":"https://api.github.com/users/coltongit/orgs","repos_url":"https://api.github.com/users/coltongit/repos","events_url":"https://api.github.com/users/coltongit/events{/privacy}","received_events_url":"https://api.github.com/users/coltongit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-09T20:18:43Z","updated_at":"2016-05-10T17:58:50Z","closed_at":"2016-05-10T17:58:50Z","body":"I happened to come across this bug with spearmint, available at spearmint.pw. The description of this bug is, when you go to compile opus, the compiler gives out 4 warnings. Here's an excerpt of the warning as it happens:\r\n```\r\nCC code/opus-1.1/silk/NLSF2A.c\r\ncode/opus-1.1/silk/NLSF2A.c: In function ‘silk_NLSF2A’:\r\ncode/opus-1.1/silk/NLSF2A.c:121:17: warning: array subscript is above array bounds [-Warray-bounds]\r\nPtmp = P[ k+1 ] + P[ k ];\r\n^\r\ncode/opus-1.1/silk/NLSF2A.c:122:17: warning: array subscript is above array bounds [-Warray-bounds]\r\nQtmp = Q[ k+1 ] - Q[ k ];\r\n^\r\ncode/opus-1.1/silk/NLSF2A.c:121:17: warning: array subscript is above array bounds [-Warray-bounds]\r\nPtmp = P[ k+1 ] + P[ k ];\r\n^\r\ncode/opus-1.1/silk/NLSF2A.c:122:17: warning: array subscript is above array bounds [-Warray-bounds]\r\nQtmp = Q[ k+1 ] - Q[ k ];\r\n^\r\n```\r\nThis also happens when compiling any project which uses opus, meaning it's probably also a bug with opus."}}