texlive[57477] Build/source/texk/web2c/pdftexdir: xmalloc not malloc

commits+karl at tug.org commits+karl at tug.org
Wed Jan 20 19:40:37 CET 2021


Revision: 57477
          http://tug.org/svn/texlive?view=revision&revision=57477
Author:   karl
Date:     2021-01-20 19:40:37 +0100 (Wed, 20 Jan 2021)
Log Message:
-----------
xmalloc not malloc

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
    trunk/Build/source/texk/web2c/pdftexdir/ptexmac.h

Modified: trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2021-01-20 18:39:27 UTC (rev 57476)
+++ trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2021-01-20 18:40:37 UTC (rev 57477)
@@ -1,6 +1,7 @@
 2021-01-20  Karl Berry  <karl at freefriends.org>
 
 	* NEWS: update.
+	* ptexmac.h (undumpcharptr): use xmalloc, not malloc.
 
 2021-01-20  Marcel Fabian Krueger  <tex at 2krueger.de>
 
@@ -9,7 +10,7 @@
 	* ptexlib.h ((un)dumptounicode): declare.
 	* tounicode.c ((un)dumptounicode): define.
 	* ptexmac.h ((un)dumpcharptr): #define here, from writeimg.c
-	(using generic_dump). Use xmalloc instead of malloc.
+	(using generic_dump).
 	* writeimg.c: #defines moved.
 	ntg-pdftex mail, 17 Jan 2021 21:47:33.
 

Modified: trunk/Build/source/texk/web2c/pdftexdir/ptexmac.h
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/ptexmac.h	2021-01-20 18:39:27 UTC (rev 57476)
+++ trunk/Build/source/texk/web2c/pdftexdir/ptexmac.h	2021-01-20 18:40:37 UTC (rev 57477)
@@ -237,7 +237,7 @@
     char *a;					\
     generic_undump (x);				\
     if (x>0) {					\
-      a = malloc(x);				\
+      a = xmalloc(x);				\
       undumpthings(*a,x);			\
       s = a ;					\
     } else { s = NULL; }			\



More information about the tex-live-commits mailing list.