diff options
Diffstat (limited to 'Build/source/texk/web2c/omegafonts')
-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) { |