summaryrefslogtreecommitdiff
path: root/graphics/dvipng/patches/patch-ad
blob: 34af543dc38e571487aa7e6f30a0fd5b7ab46a63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$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);