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

Attempt to use undefined value #41

Open
bookmoons opened this issue Nov 10, 2019 · 0 comments
Open

Attempt to use undefined value #41

bookmoons opened this issue Nov 10, 2019 · 0 comments

Comments

@bookmoons
Copy link

@bookmoons bookmoons commented Nov 10, 2019

Attempting to decode bytes 474946383961494638fd627a4421 raises an error:

TypeError: Cannot read property 'toString' of undefined

It seems to happen on line 459 of omggif.js:

                "Unknown graphic control label: 0x" + buf[p-1].toString(16));

This code reproduces:

const omggif = require('omggif')
const bytes = Buffer.from('474946383961494638fd627a4421', 'hex')
omggif.GifReader(bytes)

This was found by running jsfuzz on the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.