Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 145513 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/local/overlays/security/x11-libs/libXfont/files/1.2.0-cid-overflows.patch (-20 / +7 lines)
Lines 1-17 Link Here
1
diff --git a/src/Type1/afm.c b/src/Type1/afm.c
1
diff -u -r lib/font/Type1/afm.c.orig lib/font/Type1/afm.c
2
index b8ce2d3..006ff3c 100644
2
--- lib/font/Type1/afm.c.orig	2006-09-05 21:38:13.000000000 +0200
3
--- a/src/Type1/afm.c
4
+++ b/src/Type1/afm.c
5
@@ -37,6 +37,8 @@ #endif
6
 #include <X11/fonts/fontmisc.h>			/* for xalloc/xfree */
7
 #include "AFM.h"
8
 
Lines 23-42 Link Here
23
             fi->metrics = (Metrics *)xalloc(fi->nChars * 
21
             fi->metrics = (Metrics *)xalloc(fi->nChars * 
24
                 sizeof(Metrics));
22
                 sizeof(Metrics));
25
             if (fi->metrics == NULL) {
23
             if (fi->metrics == NULL) {
26
diff --git a/src/Type1/scanfont.c b/src/Type1/scanfont.c
24
diff -u -r lib/font/Type1/scanfont.c.orig lib/font/Type1/scanfont.c
27
index 04e3fe2..bc3c244 100644
25
--- lib/font/Type1/scanfont.c.orig	2006-09-05 21:38:13.000000000 +0200
28
--- a/src/Type1/scanfont.c
29
+++ b/src/Type1/scanfont.c
30
@@ -72,6 +72,8 @@ #include "objects.h"
31
 #include "spaces.h"
32
 #include "fontfcn.h"
33
 #include "blues.h"
34
+
Lines 44-50 Link Here
44
   FDArrayP = (psfont *)vm_alloc(arrayP->len*(sizeof(psfont)));
40
   FDArrayP = (psfont *)vm_alloc(arrayP->len*(sizeof(psfont)));
45
   if (!(FDArrayP)) return(SCAN_OUT_OF_MEMORY);
41
   if (!(FDArrayP)) return(SCAN_OUT_OF_MEMORY);
46
 
42
 
47
@@ -850,7 +853,8 @@ BuildSubrs(psfont *FontP)
43
@@ -850,7 +852,8 @@
48
      }
44
      }
49
      return(SCAN_OK);
45
      return(SCAN_OK);
50
    }
46
    }
Lines 54-60 Link Here
54
    arrayP = (psobj *)vm_alloc(N*sizeof(psobj));
50
    arrayP = (psobj *)vm_alloc(N*sizeof(psobj));
55
    if (!(arrayP) ) return(SCAN_OUT_OF_MEMORY);
51
    if (!(arrayP) ) return(SCAN_OUT_OF_MEMORY);
56
    FontP->Subrs.len = N;
52
    FontP->Subrs.len = N;
57
@@ -911,7 +915,7 @@ BuildCharStrings(psfont *FontP)
53
@@ -911,7 +914,7 @@
58
      }
54
      }
59
      else return(rc);  /* if next token was not an Int */
55
      else return(rc);  /* if next token was not an Int */
60
    }
56
    }
Lines 63-69 Link Here
63
    /* save number of entries in the dictionary */
59
    /* save number of entries in the dictionary */
64
  
60
  
65
    dictP = (psdict *)vm_alloc((N+1)*sizeof(psdict));
61
    dictP = (psdict *)vm_alloc((N+1)*sizeof(psdict));
66
@@ -1719,6 +1723,10 @@ scan_cidfont(cidfont *CIDFontP, cmapres 
62
@@ -1719,6 +1722,10 @@
67
     if (tokenType == TOKEN_INTEGER)
63
     if (tokenType == TOKEN_INTEGER)
68
       rangecnt = tokenValue.integer;
64
       rangecnt = tokenValue.integer;
69
 
65
 

Return to bug 145513