File kdelibs-prevent-svg-infiniteloop.patch of Package kdelibs3
diff -Naru kdelibs-3.5.10_orig/kdecore/svgicons/ksvgiconpainter.cpp kdelibs-3.5.10/kdecore/svgicons/ksvgiconpainter.cpp --- kdelibs-3.5.10_orig/kdecore/svgicons/ksvgiconpainter.cpp 2024-11-01 12:42:46.086299062 +0900 +++ kdelibs-3.5.10/kdecore/svgicons/ksvgiconpainter.cpp 2024-11-01 12:46:02.716980499 +0900 @@ -771,6 +771,10 @@ th0 = atan2(y0 - yc, x0 - xc); th1 = atan2(y1 - yc, x1 - xc); + // prevent infinite loop (n_segs) + if (isnan(th0)) th0 = 0; + if (isnan(th1)) th1 = 0; + th_arc = th1 - th0; if(th_arc < 0 && sweepFlag) th_arc += 2 * M_PI;