diff options
author | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2021-01-12 13:35:29 +0000 |
---|---|---|
committer | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2021-01-12 13:35:29 +0000 |
commit | 33b5d814d217ba9e6f93534ee0d50dd8d1975e57 (patch) | |
tree | 0fd542923505df264b12fdb0deb0cc805e2deb9c /Build/source | |
parent | 0d3b7e203c1f57d98e41e4411c480633b8417f78 (diff) |
makejvf: let's see ...
git-svn-id: svn://tug.org/texlive/trunk@57397 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 1 | ||||
-rw-r--r-- | Build/source/texk/makejvf/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/makejvf/main.c | 10 |
3 files changed, 11 insertions, 5 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index 4ad87b93d5e..7ef6d0350bb 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -3,6 +3,7 @@ * cmap_read.c, t1_load.c: Fix a bug causing a segfault reported as dvipdfmx-upjf.test test failure. Add missing size tests for the data comparison. + https://tug.org/pipermail/tlbuild/2021q1/004765.html 2021-01-09 Shunsaku Hirata <shunsaku.hirata74@gmail.com> diff --git a/Build/source/texk/makejvf/ChangeLog b/Build/source/texk/makejvf/ChangeLog index d32e657e2f8..5a6098fc40f 100644 --- a/Build/source/texk/makejvf/ChangeLog +++ b/Build/source/texk/makejvf/ChangeLog @@ -1,3 +1,8 @@ +2021-01-12 Hironobu Yamashita <h.y.acetaminophen@gmail.com> + + * main.c: Add size check to avoid segmentation fault. + https://tug.org/pipermail/tlbuild/2021q1/004796.html + 2020-04-12 TANAKA Takuji <ttk@t-lab.opal.ne.jp> * main.c, write.c, makejvf.h: diff --git a/Build/source/texk/makejvf/main.c b/Build/source/texk/makejvf/main.c index 247a66257a0..e417e2a9090 100644 --- a/Build/source/texk/makejvf/main.c +++ b/Build/source/texk/makejvf/main.c @@ -115,7 +115,7 @@ int main(int argc, char ** argv) } atfmname = xstrdup(argv[optind]); - if (FILESTRCASEEQ(&atfmname[strlen(atfmname)-4], ".tfm")) { + if (strlen(atfmname)>=4 && FILESTRCASEEQ(&atfmname[strlen(atfmname)-4], ".tfm")) { atfmname[strlen(atfmname)-4] = '\0'; } @@ -125,7 +125,7 @@ int main(int argc, char ** argv) strcat(vfname,".vf"); vtfmname = xstrdup(argv[optind+1]); - if (FILESTRCASEEQ(&vtfmname[strlen(vtfmname)-4], ".tfm")) { + if (strlen(vtfmname)>=4 && FILESTRCASEEQ(&vtfmname[strlen(vtfmname)-4], ".tfm")) { vtfmname[strlen(vtfmname)-4] = '\0'; } if (FILESTRCASEEQ(&vtfmname[0], &atfmname_base[0])) { @@ -134,7 +134,7 @@ int main(int argc, char ** argv) } if (kanatfm) { - if (FILESTRCASEEQ(&kanatfm[strlen(kanatfm)-4], ".tfm")) { + if (strlen(kanatfm)>=4 && FILESTRCASEEQ(&kanatfm[strlen(kanatfm)-4], ".tfm")) { kanatfm[strlen(kanatfm)-4] = '\0'; } if (FILESTRCASEEQ(&kanatfm[0], &atfmname_base[0])) { @@ -168,7 +168,7 @@ int main(int argc, char ** argv) } if (jistfm) { - if (FILESTRCASEEQ(&jistfm[strlen(jistfm)-4], ".tfm")) { + if (strlen(jistfm)>=4 && FILESTRCASEEQ(&jistfm[strlen(jistfm)-4], ".tfm")) { jistfm[strlen(jistfm)-4] = '\0'; } if (FILESTRCASEEQ(&jistfm[0], &atfmname_base[0])) { @@ -178,7 +178,7 @@ int main(int argc, char ** argv) } if (ucsqtfm) { - if (FILESTRCASEEQ(&ucsqtfm[strlen(ucsqtfm)-4], ".tfm")) { + if (strlen(ucsqtfm)>=4 && FILESTRCASEEQ(&ucsqtfm[strlen(ucsqtfm)-4], ".tfm")) { ucsqtfm[strlen(ucsqtfm)-4] = '\0'; } if (FILESTRCASEEQ(&ucsqtfm[0], &atfmname_base[0])) { |