crash on dotted lines in some EMF files, sometimes
Bug #1294840 reported by
David Mathog
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Undecided
|
David Mathog |
Bug Description
In certain EMF files dotted lines crash Inkscape. Example attached. This was variable as it involved a memory access violation that might or might not occur depending upon what preceded it, and probably varied a bit from compilation to compilation.
Patch in next post.
Changed in inkscape: | |
assignee: | nobody → David Mathog (mathog) |
milestone: | none → 0.91 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This patch eliminates the access violation. The problem was that it should have been using
style. stroke_ dasharray. values. push_back( dash_length );
but was instead doing
style. stroke_ dasharray. values[ i ]= dash_length;
and this would crash depending upon if something else had already made values long enough to hold the result for that "i".