Giter VIP home page Giter VIP logo

Comments (4)

AliceLR avatar AliceLR commented on June 16, 2024
  • ASY_Load: avoid uninitialized reads from DupStr (605e9f3)

This looks OK to me. The ASYLUM format doesn't have a module name field that I've ever seen, and I don't know why this loader has a struct member for it. I don't think I've seen 22 char sample names in them but IIRC they're valid in MODs and it's likely MOD2AMF outputs whatever sample names it was given.

  • MikMod_InfoDriver: ensure proper nul termination of list (9db6d2f)

I can't tell if this one was actually a problem or not (I think it would have output ## \0 for the final entry?), but the new handling is cleaner. This seems OK.

  • mikmod player, mconfedit.c: make skip_number saner (2a1b1f6)

This looks OK to me. The *str conditions might be redundant, but they don't hurt. (Also, LOL at the signed-to-signed casts for isdigit.)

from mikmod.

sezero avatar sezero commented on June 16, 2024

Thanks for the reviews

  • MikMod_InfoDriver: ensure proper nul termination of list (9db6d2f)

I can't tell if this one was actually a problem or not (I think it would have output ## \0 for the final entry?), but the new handling is cleaner. This seems OK.

This showed itself in mikmod player when you hit c where it plays with the driver list in evil ways, and skip_number used to hit an uninitialized byte.

from mikmod.

sezero avatar sezero commented on June 16, 2024

The *str conditions might be redundant, but they don't hurt.

Well yeah, I was blind I guess. Removed them.

from mikmod.

sezero avatar sezero commented on June 16, 2024

Changed MikMod_malloc to use plain malloc and not calloc, as of commit
544deb0. The defects revealed by this, i.e. several unitialized memory
reads here and there, has been fixed so far. Let's be on the watch for
any remaining issues - long live valgrind...

Closing this ticket.

from mikmod.

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.