foliojs / png.js

A (animated) PNG decoder in JavaScript for the HTML5 canvas element and Node.js
http://devongovett.github.com/png.js
MIT License
491 stars 92 forks source link

Stack overflow when decoding some png with big teXt chunks #78

Open MikeZeDev opened 1 year ago

MikeZeDev commented 1 year ago

Lets summarize : in Hakuneko we use pdfkit to turn a serie of pictures into a pdf.

I discovered that the problem occurs in the pdf.js library used; when parsing tExt chunks

https://github.com/manga-download/hakuneko/pull/5455

Apparently Druzai fixes is correcting the problem, since the error doesnt occurs anymore if i patch accordingly.