Skip to content
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

TypeError: Cannot read property '0' of undefined at quantizeAndInverse #96

Open
anmutech opened this issue Jun 25, 2021 · 0 comments
Open
Labels

Comments

@anmutech
Copy link

I found this error by fuzzing the jpeg-js NPM package.

To reproduce:

// jpeg-js@0.4.3
// TypeError: Cannot read property '0' of undefined at quantizeAndInverse
// @ node_modules/jpeg-js/lib/decoder.js:378:26
const jpeg = require("jpeg-js");
const buf = new Buffer("ffd8ffffffc2d88c2b008400e803ffda8c2b0000ffd8ffd9d8ef00000000b3d8", "hex");
jpeg.decode(buf);

I would be glad to help fix this error unless someone more knowledgable about the JPEG standard can do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants