summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttf2pk2
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-08-06 14:18:16 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-08-06 14:18:16 +0000
commit9f80cea7a79d9ea05c8ac3497aba15bb07ddbdc7 (patch)
treeee5eeddbbc67590a45737342538a62c90dbae1d8 /Build/source/texk/ttf2pk2
parentbe2f62b1c99597ad47dde539964c3a4a3b5cf773 (diff)
ttf2pk, ttf2pk2: Use mycalloc() to avoid uninitialized TFM header words
git-svn-id: svn://tug.org/texlive/trunk@31365 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ttf2pk2')
-rw-r--r--Build/source/texk/ttf2pk2/ChangeLog4
-rw-r--r--Build/source/texk/ttf2pk2/tfmaux.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/ttf2pk2/ChangeLog b/Build/source/texk/ttf2pk2/ChangeLog
index 1a3ecba0cab..65e89cd4a96 100644
--- a/Build/source/texk/ttf2pk2/ChangeLog
+++ b/Build/source/texk/ttf2pk2/ChangeLog
@@ -1,3 +1,7 @@
+2013-08-06 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * tfmaux.c: Use mycalloc() to initialize header array (with 0).
+
2013-07-18 Peter Breitenlohner <peb@mppmu.mpg.de>
* ttf2tfm.c: Build title with progname instead of argv[0] as
diff --git a/Build/source/texk/ttf2pk2/tfmaux.c b/Build/source/texk/ttf2pk2/tfmaux.c
index fb379e2b07c..d0fe18cf14a 100644
--- a/Build/source/texk/ttf2pk2/tfmaux.c
+++ b/Build/source/texk/ttf2pk2/tfmaux.c
@@ -367,7 +367,7 @@ buildtfm(Font *fnt)
oops("No TTF characters.");
}
- header = (long *)mymalloc(40000L);
+ header = (long *)mycalloc(40000L, sizeof(char));
fnt->cksum = checksum(fnt->inencptrs);
header[0] = fnt->cksum;
header[1] = 0xA00000; /* 10pt design size */