summaryrefslogtreecommitdiff
path: root/graphics/dvipng
diff options
context:
space:
mode:
authorminskim <minskim>2010-09-13 04:28:21 +0000
committerminskim <minskim>2010-09-13 04:28:21 +0000
commit317f60a4460d6c51f5e764b9f5cba32d83e5b18e (patch)
tree3415917d51ff76283942da2cf2e8cac20aca8c67 /graphics/dvipng
parent3a24322a1aacbf379595ac34e1cf8ce2e09893c4 (diff)
downloadpkgsrc-317f60a4460d6c51f5e764b9f5cba32d83e5b18e.tar.gz
Update dvipng to 1.13.
Changes: - Add width reporting.
Diffstat (limited to 'graphics/dvipng')
-rw-r--r--graphics/dvipng/Makefile5
-rw-r--r--graphics/dvipng/distinfo12
-rw-r--r--graphics/dvipng/patches/patch-aa55
-rw-r--r--graphics/dvipng/patches/patch-ab18
-rw-r--r--graphics/dvipng/patches/patch-ac31
-rw-r--r--graphics/dvipng/patches/patch-ad19
6 files changed, 6 insertions, 134 deletions
diff --git a/graphics/dvipng/Makefile b/graphics/dvipng/Makefile
index 14b977eec7a..92d2d12d62a 100644
--- a/graphics/dvipng/Makefile
+++ b/graphics/dvipng/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2010/06/13 22:44:29 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2010/09/13 04:28:21 minskim Exp $
-DISTNAME= dvipng-1.12
-PKGREVISION= 3
+DISTNAME= dvipng-1.13
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dvipng/}
diff --git a/graphics/dvipng/distinfo b/graphics/dvipng/distinfo
index 49dab6dad76..206fe6bfd00 100644
--- a/graphics/dvipng/distinfo
+++ b/graphics/dvipng/distinfo
@@ -1,9 +1,5 @@
-$NetBSD: distinfo,v 1.3 2010/05/17 20:21:38 tez Exp $
+$NetBSD: distinfo,v 1.4 2010/09/13 04:28:21 minskim Exp $
-SHA1 (dvipng-1.12.tar.gz) = 313357bdeb84f705a5d3e2e1215d55c13a86d79e
-RMD160 (dvipng-1.12.tar.gz) = b8698d70f6a819fb84e1ff9d8dfb34765a05bced
-Size (dvipng-1.12.tar.gz) = 168196 bytes
-SHA1 (patch-aa) = 93345009e69f2347ddb001799a84e14d5eb80dce
-SHA1 (patch-ab) = 6e1982458289485d52b05aa0f07acf606cd607e3
-SHA1 (patch-ac) = 431b97551f3315a919b4aa2fd5a9ae88ba8abda9
-SHA1 (patch-ad) = 1e8c21a359513101f3ed6cd4307c2a79d99b6443
+SHA1 (dvipng-1.13.tar.gz) = 626568203e3f799c99da0f3e31edecb13ce202b6
+RMD160 (dvipng-1.13.tar.gz) = c615840bbc3f51cb81973e88484bc0838db1382d
+Size (dvipng-1.13.tar.gz) = 169309 bytes
diff --git a/graphics/dvipng/patches/patch-aa b/graphics/dvipng/patches/patch-aa
deleted file mode 100644
index f8dc55b2094..00000000000
--- a/graphics/dvipng/patches/patch-aa
+++ /dev/null
@@ -1,55 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2010/05/17 20:21:38 tez Exp $
-CVE-2010-0829
-
---- draw.c 2008-06-11 23:05:01 +0000
-+++ draw.c 2010-04-27 09:34:06 +0000
-@@ -79,9 +79,15 @@
-
- if (currentfont==NULL)
- Fatal("faulty DVI, trying to set character from null font");
--
-- if (c>=0 && c<=LASTFNTCHAR)
-- ptr = currentfont->chr[c];
-+ if (c<0 || c>LASTFNTCHAR) {
-+ Warning("glyph index out of range (%d), skipping",c);
-+ return(0);
-+ }
-+ ptr=currentfont->chr[c];
-+ if (ptr==NULL) {
-+ Warning("unable to draw glyph %d, skipping",c);
-+ return(0);
-+ }
- #ifdef DEBUG
- switch (currentfont->type) {
- case FONT_TYPE_VF: DEBUG_PRINT(DEBUG_DVI,("\n VF CHAR:\t")); break;
-@@ -90,15 +96,15 @@
- case FONT_TYPE_FT: DEBUG_PRINT(DEBUG_DVI,("\n FT CHAR:\t")); break;
- default: DEBUG_PRINT(DEBUG_DVI,("\n NO CHAR:\t"))
- }
-- if (isprint(c))
-+ if (debug & DEBUG_DVI && c>=0 && c<=UCHAR_MAX && isprint(c))
- DEBUG_PRINT(DEBUG_DVI,("'%c' ",c));
- DEBUG_PRINT(DEBUG_DVI,("%d at (%d,%d) tfmw %d", c,
- dvi_stack->hh,dvi_stack->vv,ptr?ptr->tfmw:0));
- #endif
- if (currentfont->type==FONT_TYPE_VF) {
-- return(SetVF(c));
-+ return(SetVF(ptr));
- } else {
-- if (ptr!=NULL && ptr->data == NULL)
-+ if (ptr->data == NULL)
- switch(currentfont->type) {
- case FONT_TYPE_PK: LoadPK(c, ptr); break;
- #ifdef HAVE_LIBT1
-@@ -111,8 +117,8 @@
- Fatal("undefined fonttype %d",currentfont->type);
- }
- if (page_imagep != NULL)
-- return(SetGlyph(c, dvi_stack->hh, dvi_stack->vv));
-- else if (ptr!=NULL) {
-+ return(SetGlyph(ptr, dvi_stack->hh, dvi_stack->vv));
-+ else {
- /* Expand bounding box if necessary */
- min(x_min,dvi_stack->hh - ptr->xOffset/shrinkfactor);
- min(y_min,dvi_stack->vv - ptr->yOffset/shrinkfactor);
-
diff --git a/graphics/dvipng/patches/patch-ab b/graphics/dvipng/patches/patch-ab
deleted file mode 100644
index a2ec732a119..00000000000
--- a/graphics/dvipng/patches/patch-ab
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2010/05/17 20:21:38 tez Exp $
-CVE-2010-0829
-
---- dvipng.h 2009-10-10 02:29:09 +0000
-+++ dvipng.h 2010-04-27 09:34:06 +0000
-@@ -387,9 +387,9 @@
- void WriteImage(char*, int);
- void LoadPK(int32_t, register struct char_entry *);
- int32_t SetChar(int32_t);
--dviunits SetGlyph(int32_t c, int32_t hh,int32_t vv);
-+dviunits SetGlyph(struct char_entry *ptr, int32_t hh,int32_t vv);
- void Gamma(double gamma);
--int32_t SetVF(int32_t);
-+int32_t SetVF(struct char_entry *ptr);
- int32_t SetRule(int32_t, int32_t, int32_t, int32_t);
- void SetSpecial(char *, int32_t, int32_t);
- void BeginVFMacro(struct font_entry*);
-
diff --git a/graphics/dvipng/patches/patch-ac b/graphics/dvipng/patches/patch-ac
deleted file mode 100644
index 77d7639dcb9..00000000000
--- a/graphics/dvipng/patches/patch-ac
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2010/05/17 20:21:38 tez Exp $
-CVE-2010-0829
-
---- set.c 2008-06-11 23:05:01 +0000
-+++ set.c 2010-04-27 09:34:06 +0000
-@@ -203,23 +203,13 @@
- }
- }
-
--dviunits SetGlyph(int32_t c, int32_t hh,int32_t vv)
-+dviunits SetGlyph(struct char_entry *ptr, int32_t hh,int32_t vv)
- /* gdImageChar can only do monochrome glyphs */
- {
-- register struct char_entry *ptr;
- int dst_alpha,dst_weight,tot_weight,alpha;
- int x,y,pos=0;
- int bgColor,pixelgrey,pixelcolor;
-
-- if (c<0 || c>LASTFNTCHAR) {
-- Warning("glyph index too large (%d), skipping",c);
-- return(0);
-- }
-- ptr=currentfont->chr[c];
-- if (ptr==NULL) {
-- Warning("unable to draw glyph %d, skipping",c);
-- return(0);
-- }
- hh -= ptr->xOffset/shrinkfactor;
- vv -= ptr->yOffset/shrinkfactor;
- /* Initialize persistent color cache. Perhaps this should be in
-
diff --git a/graphics/dvipng/patches/patch-ad b/graphics/dvipng/patches/patch-ad
deleted file mode 100644
index 34af543dc38..00000000000
--- a/graphics/dvipng/patches/patch-ad
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2010/05/17 20:21:39 tez Exp $
-CVE-2010-0829
-
---- vf.c 2008-06-11 23:05:01 +0000
-+++ vf.c 2010-04-27 09:34:06 +0000
-@@ -27,11 +27,10 @@
- #define VF_ID 202
- #define LONG_CHAR 242
-
--int32_t SetVF(int32_t c)
-+int32_t SetVF(struct char_entry* ptr)
- {
- struct font_entry* currentvf;
- unsigned char *command,*end;
-- struct char_entry* ptr=currentfont->chr[c];
-
- currentvf=currentfont;
- BeginVFMacro(currentvf);
-