From 97c5261289eb292b480bae67efead2f838504adc Mon Sep 17 00:00:00 2001 From: Takuji Tanaka Date: Sat, 16 Sep 2023 00:12:33 +0000 Subject: metapost: Avoid a buffer overflow git-svn-id: svn://tug.org/texlive/trunk@68292 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/mplibdir/ChangeLog | 4 ++++ Build/source/texk/web2c/mplibdir/mp.w | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'Build/source') 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 + + * mp.w: Fixed a buffer overflow. + 2023-09-10 TANAKA Takuji * 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. @= { - s = xmalloc (13, 1); + s = xmalloc (14, 1); mp_snprintf (s, 13, ".%i", (int) c); s[13]='\0'; } -- cgit v1.2.3