diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-11-05 09:00:45 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-11-05 09:00:45 +0000 |
commit | 166fe2d6af0d6ac9b2701bd95cd6873e5e8c5808 (patch) | |
tree | 50c558dfd44f8a53eaf181b0fdf2f895703fad6f | |
parent | daa61875754bee45ee8a4f579571f4953b267aa2 (diff) |
texk/dvipdfm-x: Fix a bug in dpxfile.c which causes a crash if a map file is not found
git-svn-id: svn://tug.org/texlive/trunk@35516 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/dpxfile.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index 32f8b7bf20d..19dce78223c 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,8 @@ +2014-11-05 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * dpxfile.c: Check if fqpn == NULL in dpx_open_file(), because + MESG (fqpn) crashes if fqpn == NULL. + 2014-11-04 Peter Breitenlohner <peb@mppmu.mpg.de> * pkfont.c: Fix the messed up formatting codes. diff --git a/Build/source/texk/dvipdfm-x/dpxfile.c b/Build/source/texk/dvipdfm-x/dpxfile.c index e2c4c7424b3..11fcb1de5b9 100644 --- a/Build/source/texk/dvipdfm-x/dpxfile.c +++ b/Build/source/texk/dvipdfm-x/dpxfile.c @@ -413,8 +413,10 @@ dpx_open_file (const char *filename, dpx_res_type type) switch (type) { case DPX_RES_TYPE_FONTMAP: fqpn = dpx_find_fontmap_file(filename); - if (verbose) - MESG(fqpn); + if (verbose) { + if (fqpn != NULL) + MESG(fqpn); + } break; case DPX_RES_TYPE_T1FONT: fqpn = dpx_find_type1_file(filename); |