texlive[48937] Build/source/texk/web2c/omegafonts: malloc activity to

commits+karl at tug.org commits+karl at tug.org
Thu Oct 18 23:54:01 CEST 2018


Revision: 48937
          http://tug.org/svn/texlive?view=revision&revision=48937
Author:   karl
Date:     2018-10-18 23:54:01 +0200 (Thu, 18 Oct 2018)
Log Message:
-----------
malloc activity to be lig_kern_size+1

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/omegafonts/ChangeLog
    trunk/Build/source/texk/web2c/omegafonts/ligkern_routines.c

Modified: trunk/Build/source/texk/web2c/omegafonts/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/omegafonts/ChangeLog	2018-10-18 20:33:24 UTC (rev 48936)
+++ trunk/Build/source/texk/web2c/omegafonts/ChangeLog	2018-10-18 21:54:01 UTC (rev 48937)
@@ -1,3 +1,11 @@
+2018-10-18  Norbert Preining  <preining at 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 at tug.org>
 
 	* overbmp.test: LC_ALL=LANGUAGE=C.

Modified: trunk/Build/source/texk/web2c/omegafonts/ligkern_routines.c
===================================================================
--- trunk/Build/source/texk/web2c/omegafonts/ligkern_routines.c	2018-10-18 20:33:24 UTC (rev 48936)
+++ trunk/Build/source/texk/web2c/omegafonts/ligkern_routines.c	2018-10-18 21:54:01 UTC (rev 48937)
@@ -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 @@
         }
     }
 
-    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) {



More information about the tex-live-commits mailing list