rev 9291 - in trunk/packages/kdegraphics/debian: . patches

Fathi Boudra fabo at alioth.debian.org
Tue Feb 5 16:11:31 UTC 2008


Author: fabo
Date: 2008-02-05 16:11:30 +0000 (Tue, 05 Feb 2008)
New Revision: 9291

Added:
   trunk/packages/kdegraphics/debian/patches/03_kpdf_branch_r740624.diff
Modified:
   trunk/packages/kdegraphics/debian/changelog
Log:
* Add 03_kpdf_branch_r740624 patch (Closes: #)
  - sscanf crashes on a NULL pointer so verify s is not empty.


Modified: trunk/packages/kdegraphics/debian/changelog
===================================================================
--- trunk/packages/kdegraphics/debian/changelog	2008-02-05 14:44:16 UTC (rev 9290)
+++ trunk/packages/kdegraphics/debian/changelog	2008-02-05 16:11:30 UTC (rev 9291)
@@ -12,6 +12,8 @@
     package. (Closes: #452996)
   * Add 02_kpdf_branch_r761840 patch (Closes: #353958):
     - Use the local file path, so remote URLs are not downloaded again.
+  * Add 03_kpdf_branch_r740624 patch (Closes: #)
+    - sscanf crashes on a NULL pointer so verify s is not empty.
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Sun, 30 Dec 2007 22:16:18 +0100
 

Added: trunk/packages/kdegraphics/debian/patches/03_kpdf_branch_r740624.diff
===================================================================
--- trunk/packages/kdegraphics/debian/patches/03_kpdf_branch_r740624.diff	                        (rev 0)
+++ trunk/packages/kdegraphics/debian/patches/03_kpdf_branch_r740624.diff	2008-02-05 16:11:30 UTC (rev 9291)
@@ -0,0 +1,11 @@
+--- a/kpdf/core/generator_pdf/generator_pdf.cpp
++++ b/kpdf/core/generator_pdf/generator_pdf.cpp
+@@ -808,7 +808,7 @@
+         if ( s[0] == 'D' && s[1] == ':' )
+             s = s.mid(2);
+ 
+-        if ( sscanf( s.latin1(), "%4d%2d%2d%2d%2d%2d", &year, &mon, &day, &hour, &min, &sec ) == 6 )
++        if ( !s.isEmpty() && sscanf( s.latin1(), "%4d%2d%2d%2d%2d%2d", &year, &mon, &day, &hour, &min, &sec ) == 6 )
+         {
+             QDate d( year, mon, day );  //CHECK: it was mon-1, Jan->0 (??)
+             QTime t( hour, min, sec );




More information about the pkg-kde-commits mailing list