inkscape crashes on import of (corrupted) PNG
Bug #271401 reported by
Christian Wäckerlin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Krzysztof Kosinski | ||
Bug Description
Hi,
when I import the attached PNG file, Inkscape crashes.
I use 0.46-2 form Debian/testing on i386.
Please note that the PNG file is corrupted, but it should not crash anyway.
Regards,
Christian Wäckerlin
Backtrace:
-------
0xb7ef2424 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7ef2424 in __kernel_vsyscall ()
#1 0xb6728640 in raise () from /lib/i686/
#2 0xb672a018 in abort () from /lib/i686/
#3 0xb72fa7b7 in png_create_
#4 0x00000000 in ?? ()
Related branches
tags: | added: import-export |
Changed in inkscape: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: crash |
Changed in inkscape: | |
assignee: | nobody → Krzysztof Kosiński (tweenk) |
status: | Confirmed → Fix Committed |
Changed in inkscape: | |
milestone: | none → 0.48 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Attaching patch (applies to inkscape-0.47~pre4, but I'm sure it's simple enough to paste the code into any version).
The problem is that libpng uses setjmp/longjmp for error handling. Inkscape was not calling setjmp, so libpng was taking the default method of handling errors: abort.
This is my first inkscape patch and I am unfamiliar with the codebase, so please check it over.