File bugzilla-240159-array-subscript-out-of-bounds.patch of Package t1lib

diff -ru t1lib-5.1.0/lib/t1lib/t1aaset.c t1lib-5.1.0.new/lib/t1lib/t1aaset.c
--- t1lib-5.1.0/lib/t1lib/t1aaset.c	2005-05-02 00:05:34.000000000 +0200
+++ t1lib-5.1.0.new/lib/t1lib/t1aaset.c	2007-01-31 11:57:23.000000000 +0100
@@ -1466,7 +1466,7 @@
 
 /* T1_AAHSetGrayValues(): Sets the byte values that are put into the
    pixel position for the respective entries (for 17 gray levels):
-   Returns 0 if successfull.
+   Returns 0 if successful.
    */
 int T1_AAHSetGrayValues( unsigned long *grayvals)
 {
@@ -1563,7 +1563,7 @@
   }
 
   for ( i=0; i<17; i++) { /* bg (i=0)  to fg (i=16) */
-    pgrayvals[i]=gv[i];
+    pgrayvals[i]=gv_h[i];
   }
   return( 0);
 }
openSUSE Build Service is sponsored by