diff options
author | Karl Berry <karl@freefriends.org> | 2018-10-18 21:54:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-10-18 21:54:01 +0000 |
commit | fc9f81c8a0e490cb8b1f7710784f3a87e82b1b51 (patch) | |
tree | d70c407bb104646a6c1a8c468e89c426ebb27317 | |
parent | 57a73b1c4d59914f8178882a901e5c028d53b7ff (diff) |
malloc activity to be lig_kern_size+1
git-svn-id: svn://tug.org/texlive/trunk@48937 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/web2c/omegafonts/ChangeLog | 8 | ||||
-rw-r--r-- | Build/source/texk/web2c/omegafonts/ligkern_routines.c | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/omegafonts/ChangeLog b/Build/source/texk/web2c/omegafonts/ChangeLog index d150069a5f6..059bfe62012 100644 --- a/Build/source/texk/web2c/omegafonts/ChangeLog +++ b/Build/source/texk/web2c/omegafonts/ChangeLog @@ -1,3 +1,11 @@ +2018-10-18 Norbert Preining <preining@logic.at> + + * ligkern_routines.c (retrieve_ligkern_table): need + lig_kern_size+1 for `activity' array, else glibc 2.28 + on 32-bit architectures finds malloc error. + Original report from Tom Callaway, + https://tug.org/pipermail/tex-live/2018-September/042411.html + 2018-09-09 Karl Berry <karl@tug.org> * overbmp.test: LC_ALL=LANGUAGE=C. diff --git a/Build/source/texk/web2c/omegafonts/ligkern_routines.c b/Build/source/texk/web2c/omegafonts/ligkern_routines.c index 09488eb3655..45ecc6e4877 100644 --- a/Build/source/texk/web2c/omegafonts/ligkern_routines.c +++ b/Build/source/texk/web2c/omegafonts/ligkern_routines.c @@ -3,7 +3,7 @@ This file is part of Omega, which is based on the web2c distribution of TeX, -Copyright (c) 1994--2001 John Plaice and Yannis Haralambous +Copyright (c) 1994--2018 John Plaice and Yannis Haralambous Omega is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -649,7 +649,8 @@ retrieve_ligkern_table(unsigned char *ofm_lig_table, } } - activity = (unsigned char *) xcalloc(lig_kern_size, sizeof(unsigned char)); + activity = (unsigned char *) xcalloc(lig_kern_size+1, + sizeof(unsigned char)); if (nl > 0) { if (lig_kern_table[0].entries[0] == 255) { |