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 set property 'huffmanTableDC' of undefined at constructor.parse #95

Open
anmutech opened this issue Jun 25, 2021 · 0 comments
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 set property 'huffmanTableDC' of undefined at constructor.parse
// @ node_modules/jpeg-js/lib/decoder.js:798:40
const jpeg = require("jpeg-js");
const buf = new Buffer("ffd8ffffffc0d8e00080d8000600ffffffdad8ff7fefaad8", "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