File netpbm-10.26.44-xpmtoppm-CVE-2009-4274.patch of Package netpbm

--- netpbm-10.26.44/converter/ppm/xpmtoppm.c
+++ netpbm-10.26.44/converter/ppm/xpmtoppm.c
@@ -159,7 +159,7 @@
 getNumber(char * const p, unsigned int const size) {
 
     unsigned int retval;
-    char * q;
+    unsigned char * q;
     
     retval = 0;
     for (q = p; q < p+size; ++q)
@@ -463,7 +463,8 @@
     char line[MAX_LINE+1], str1[MAX_LINE+1], str2[MAX_LINE+1];
     char *t1;
     char *t2;
-    int format, v;
+    int format;
+    unsigned int v;
     int i, j;
     bool processedStaticChar;  
         /* We have read up to and interpreted the "static char..." line */
openSUSE Build Service is sponsored by