Inkscape crashes when opening a large PNG-file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
High
|
Unassigned |
Bug Description
Dear Maintainers,
I would like to report a bug where a large PNG file can crash Inkscape.
Affected Inkscape versions: 0.45 and 0.91
OS: Debian 8.1 x64
Memory: 24 GiB
Steps to reproduce the crash:
1. save the attached PNG image to a folder
2. start inkscape
3. click on 'file' -> 'open'
4. select the PNG file (important: deselect 'preview' to avoid another bug which I reported too)
5. inkscape crashes
I've been able to get additional information with GDB. Please see the attached txt file.
Some additional information which could be important:
--> (gdb) frame 0
#0 0x00007ffff6180667 in gdk_pixbuf_
112 in gdk-pixbuf-util.c
(gdb) info locals
dest = 0x7ffe2bd7c871 <error: Cannot access memory at address 0x7ffe2bd7c871>
tr = <optimized out>
tb = <optimized out>
src = 0x7fffb9a61a59 ""
tg = <optimized out>
new_pixbuf = 0x4588760
x = 0
y = 19885
src_pixels = 0x7fff59a50010 ""
ret_pixels = 0x7ffeabd65010 ""
__func__ = "gdk_pixbuf_
--> Problematic line: tr = *dest++ = *src++;
--> When I try to open a 50k x 50k grayscale PNG the crash happens at row 10738 (instead of row 19855)
Best regards
vigri
Reproduced on Windows XP (32bit), Inkscape trunk revision 14285.