-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array subscript is above array bounds when compiling NLSF2A.c #7
Comments
I think these are spurious. On line 89 we have
then on line 113, the loop bound is set to
so Any suggestions how we can silence the warning? Which compiler version shows the issue? |
Latest Cygwin, rillian. I'm currently using the x64 version. |
what does |
It reports gcc 5.3.0. |
zturtleman fixed this error in Spearmint. Here's the changelog for the error fix: zturtleman/spearmint@a3da9be |
Thanks for the link. I'd rather not just turn the warning off, since it can find real bugs elsewhere. Oddly, I can't reproduce with gcc 5.3 or 6.1 on linux, nor with cross-mingw32-gcc 6.1 on linux with the opus autotools build, and not with gcc 6.0 on linux with the spearmint build (although I do see array-bounds warnings for several other spearmint submodules). I also don't see any differences between the silk code in the opus master branch verses the spearmint fork which would change the array bound calculation. |
He reverted the changes explained here because it broke compilation on Mac OS X 10.6.8. |
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:
This also happens when compiling any project which uses opus, meaning it's probably also a bug with opus.
The text was updated successfully, but these errors were encountered: