From fc9f81c8a0e490cb8b1f7710784f3a87e82b1b51 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 18 Oct 2018 21:54:01 +0000 Subject: malloc activity to be lig_kern_size+1 git-svn-id: svn://tug.org/texlive/trunk@48937 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/omegafonts/ChangeLog | 8 ++++++++ Build/source/texk/web2c/omegafonts/ligkern_routines.c | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'Build/source/texk/web2c') 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 + + * 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 * 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) { -- cgit v1.2.3