Giter VIP home page Giter VIP logo

Comments (5)

vkoskiv avatar vkoskiv commented on July 4, 2024

@lvandeve It seems it's unable to parse the width here, but I'm not sure why.

from lodepng.

vkoskiv avatar vkoskiv commented on July 4, 2024

Here is the PNG header hexdump:

00000000  89 50 4e 47 0d 0a 1a 0a  00 00 00 0d 49 48 44 52  |.PNG........IHDR|
00000010  00 00 01 f3 00 00 02 3a  08 06 00 00 00 33 00 a1  |.......:.....3..|
00000020  aa 00 00 00 04 67 41 4d  41 00 00 b1 8f 0b fc 61  |.....gAMA......a|
00000030  05 00 00 00 20 63 48 52  4d 00 00 7a 26 00 00 80  |.... cHRM..z&...|
00000040  84 00 00 fa 00 00 00 80  e8 00 00 75 30 00 00 ea  |...........u0...|
00000050  60 00 00 3a 98 00 00 17  70 9c ba 51 3c 00 00 00  |`..:....p..Q<...|
00000060  09 70 48 59 73 00 00 0b  13 00 00 0b 13 01 00 9a  |.pHYs...........|
00000070  9c 18 00 00 03 c2 69 54  58 74 58 4d 4c 3a 63 6f  |......iTXtXML:co|
00000080  6d 2e 61 64 6f 62 65 2e  78 6d 70 00 00 00 00 00  |m.adobe.xmp.....|
00000090  3c 78 3a 78 6d 70 6d 65  74 61 20 78 6d 6c 6e 73  |<x:xmpmeta xmlns|

from lodepng.

vkoskiv avatar vkoskiv commented on July 4, 2024

It also crashes when decoding a PNG encoded by LodePNG. (My initial tests were with a PNG encoded with Pixelmator)

from lodepng.

vkoskiv avatar vkoskiv commented on July 4, 2024

And, of course this is my fault. I'm passing in an incorrect value for the w and h.

Facepalm.

from lodepng.

lvandeve avatar lvandeve commented on July 4, 2024

Thank you very much for reporting anyway! This is always very useful, even if it can sometimes be a false positive :)

from lodepng.

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.