Giter Site home page Giter Site logo

Attempt to use undefined value about omggif HOT 1 CLOSED

deanm avatar deanm commented on July 20, 2024
Attempt to use undefined value

from omggif.

Comments (1)

deanm avatar deanm commented on July 20, 2024

Yeah, it makes sense there that we basically read off the end of the input. The consequence is that we throw an exception while trying to throw an exception, so in the end it's still throwing an exception (just maybe we could do a better job at the exception that's thrown). It's not really a goal of omggif to handle corrupted input super well or give you amazing error messages. It's a little bit more in the "garbage in garbage out" philosophy, in the name of performance, to not penalise the decoding of well-formed GIFs for the sake of making friendlier error message for invalid ones. Usually it can at least tell you it was garbage in, but I'm sure there are places where we will successful decode something that is probably technically broken.

I appreciate filing the bug though, but I would triage this as pretty low priority and not worth committing a fix for. In general I'm interested in either well formed GIFs not decoding correctly when they should (ie don't use features we don't support, etc), or invalid GIFs that somehow don't error out properly (infinite loop, etc).

Thanks!

from omggif.

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.