Bug 126176

Summary: ksvg crashes on a particular file
Product: ksvg Reporter: Jos van den Oever <jos>
Component: generalAssignee: Nikolas Zimmermann <wildfox>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: cfeck, esigra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: svg crashing ksvg
KSVGReader.cc.patch.diff
KSVGReader.cc.patch.diff
KSVGReader.cc.patch.diff
KSVGReader.cc.patch.diff

Description Jos van den Oever 2006-04-24 15:48:27 UTC
Version:           unknown (using KDE 3.5.2 Level "a" , SUSE 9.3 UNSUPPORTED)
Compiler:          gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
OS:                Linux (i686) release 2.6.11.4-21.11-smp

ksvg crashes on the attached file.
The crash can be repeated by opening the file in konqueror.
Comment 1 Jos van den Oever 2006-04-24 15:49:01 UTC
Created attachment 15760 [details]
svg crashing ksvg
Comment 2 Jos van den Oever 2006-04-24 15:50:20 UTC
The crash is caused by the tag in the sodipodi namespace. The sodipodi namespace was not declared.
Comment 3 patch_linams 2007-07-26 09:23:49 UTC
Created attachment 21250 [details]
KSVGReader.cc.patch.diff

Hi!

A patch with a fix for this bug is in the attachment.
Comment 4 patch_linams 2007-07-26 09:45:31 UTC
Created attachment 21251 [details]
KSVGReader.cc.patch.diff

The same patch just a bit better.
Comment 5 patch_linams 2007-07-26 11:02:14 UTC
Created attachment 21252 [details]
KSVGReader.cc.patch.diff

more strict here (also checking attribute names). this patch should be it.
Comment 6 patch_linams 2007-07-26 21:05:24 UTC
Created attachment 21256 [details]
KSVGReader.cc.patch.diff

Updated: namespace constraint (reserved prefixes)
Comment 7 Maksim Orlovich 2007-07-26 21:13:20 UTC
As KSVG seems to be currently unmaintained (and removed for 4.x), I am not sure what's a good path is here... You might just want to get an account and just commit it, or pester someone on a mailing list such as kfm-devel w/it...

Oh, and thanks for the patch..
Comment 8 patch_linams 2007-07-26 21:46:05 UTC
Actually, I wrote the patch for me 'cause I will use my KDE version (3.5.7) at least for another couple of months (2007-10-23 is the current release date for KDE  4 stable). 

> Oh, and thanks for the patch..

Well, enjoy )
Comment 9 esigra 2009-01-18 11:55:34 UTC
This is a confirmation that the bug still exists in KDE 3.5.10. (By the way, the patch does not look totally clean; there are some lines with seemingly needless whitespace-changes only.)
Comment 10 Christoph Feck 2011-10-17 21:06:57 UTC
This component has been replaced with the QtSvg based "svgpart" in KDE 4. If
this issue still needs to be addressed, please add a comment.