Giter Club home page Giter Club logo

Comments (6)

Zazama avatar Zazama commented on July 21, 2024 1

Fixed d16530a and published to npm with 0.1.6

from node-id3.

Zazama avatar Zazama commented on July 21, 2024

Hello,
would you mind sending me the .mp3 file you're having troubles with to the email in the package.json?

from node-id3.

kourylape avatar kourylape commented on July 21, 2024

@Zazama - I sent the MP3 file. I also did some digging and found the culprit to be the cover art.

The file I sent has two cover art photos. The first is the true cover art which is 1 MB @ 1400x1400, the second is a wave pattern added by Beatport Pro which is 51 KB @ 1200x200.

If I remove either of the cover art, the script works fine.

Maybe something is getting multiplied? The max buffer size should be 2GB.

from node-id3.

Zazama avatar Zazama commented on July 21, 2024

Yeah, I took a small look at it.
Seems like there are two bugs:

  1. the second cover art frame isn't read at its start (maybe it's even trying to read in the middle of the first cover art frame)
  2. due to this, it reads random 4 bytes which can hold an extremly high number for the frame size, but the library should check if this size of a frame is bigger than the rest of the ID3-Tag.

I'm a bit sick right now, so I won't dig deeper until I'm better, but a fix shouldn't be too complicated when I'm on it. I could speculate and say it might be because of two present APICs (cover arts) which I've never tested before.

Sorry for the wait, hope it's not urgent.

from node-id3.

towfiqi avatar towfiqi commented on July 21, 2024

@Zazama Hope you are ok now. Is it possible to avoid reading the cover art data to prevent this issue as I am not utilizing cover arts in my app.

from node-id3.

towfiqi avatar towfiqi commented on July 21, 2024

Great! Thanks for the quick fix :)

from node-id3.

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.