diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2023-09-16 00:12:33 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2023-09-16 00:12:33 +0000 |
commit | 97c5261289eb292b480bae67efead2f838504adc (patch) | |
tree | 41f3c6cee36fa4c7a9bc68f2c21341d0bed5a706 /Build/source/texk/web2c | |
parent | f3e140cf68ad5f606dd6a875ddf64d4a32fab4ee (diff) |
metapost: Avoid a buffer overflow
git-svn-id: svn://tug.org/texlive/trunk@68292 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r-- | Build/source/texk/web2c/mplibdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/mplibdir/mp.w | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/mplibdir/ChangeLog b/Build/source/texk/web2c/mplibdir/ChangeLog index 749c01682ff..5829ed62d1a 100644 --- a/Build/source/texk/web2c/mplibdir/ChangeLog +++ b/Build/source/texk/web2c/mplibdir/ChangeLog @@ -1,3 +1,7 @@ +2023-09-16 TANAKA Takuji <ttk@t-lab.opal.ne.jp> + + * mp.w: Fixed a buffer overflow. + 2023-09-10 TANAKA Takuji <ttk@t-lab.opal.ne.jp> * decContext.{c,h}, decNumber.{c,h}, decNumberLocal.h: diff --git a/Build/source/texk/web2c/mplibdir/mp.w b/Build/source/texk/web2c/mplibdir/mp.w index 96d7390dcf5..df3d7f10f3c 100644 --- a/Build/source/texk/web2c/mplibdir/mp.w +++ b/Build/source/texk/web2c/mplibdir/mp.w @@ -34815,7 +34815,7 @@ extreme cases so it may have to be shortened on some systems. @<Use |c| to compute the file extension |s|@>= { - s = xmalloc (13, 1); + s = xmalloc (14, 1); mp_snprintf (s, 13, ".%i", (int) c); s[13]='\0'; } |