Apache OpenOffice (AOO) Bugzilla – Issue 122912
[SVG] Crash with special svg-image
Last modified: 2017-05-20 10:35:37 UTC
Created attachment 81215 [details] File to reproduce crash The attached svg-documents has no viewBox on the outermost svg-element and an inner svg-element with relative width. In resolving the relative width it gets the outermost svg-element and then with getViewBox() its viewBox. But in this case getViewBox() results Null, so that the following ->getWidth() crashes. file: svgio\source\svgreader\svgsvgnode.cxx I'm currently working in that area and want to discuss a solution.
Reproducible with "AOO 4.0.0 – German UI / German locale [AOO400m3(Build:9702) - Rev. 1503704 2013-07-16 14:54:56 (Di, 16 Jul 2013)]" on German German WIN7 Home Premium (64bit)", Common 4.0-dev User Profile: 1. From AOO Start Center menu 'File -> Open -> Browse for reporter's sample document -> <Open> Bug: CRASH, document recovery appears Additional info: ---------------- a) As to be expected also crashes when you use menu 'Insert -> Picture from File' b) Competitors: No crash with LibO 4.2 (what shows picture Wrongly) No Crash with Calligra Carbon (what shows picture Wrongly) Softmaker FreeOffice does not support SVG
Was not a problem with AOO 3.4.0, 3.4.1
Fix is contained in patch in bug 122600. Patch is waiting for review.
No crash with test file. Verified on AOO4.0.1 r1517538 and trunk r1517803.
ALG: Corrected owner