GithubHelp home page GithubHelp logo

Comments (7)

rillian avatar rillian commented on June 25, 2024

I think these are spurious. On line 89 we have

silk_assert( d==10||d==16 );

then on line 113, the loop bound is set to

dd = silk_RSHIFT( d, 1 );

so dd is either 5 or 8. Meanwhile the array itself is size SILK_MAX_ORDER_LPC / 2 + 1 which is 9 (by SigProc_FIX.h:38) so the k+1 array access is safe.

Any suggestions how we can silence the warning? Which compiler version shows the issue?

from opus.

rawr51919 avatar rawr51919 commented on June 25, 2024

Latest Cygwin, rillian. I'm currently using the x64 version.

from opus.

rillian avatar rillian commented on June 25, 2024

what does gcc --version say?

from opus.

rawr51919 avatar rawr51919 commented on June 25, 2024

It reports gcc 5.3.0.

from opus.

rawr51919 avatar rawr51919 commented on June 25, 2024

zturtleman fixed this error in Spearmint. Here's the changelog for the error fix: zturtleman/spearmint@a3da9be

from opus.

rillian avatar rillian commented on June 25, 2024

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.

from opus.

rawr51919 avatar rawr51919 commented on June 25, 2024

He reverted the changes explained here because it broke compilation on Mac OS X 10.6.8.

from opus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.