texlive[69423] Build/source/texk/web2c/pdftexdir: avoid generating a

commits+karl at tug.org commits+karl at tug.org
Mon Jan 15 03:15:02 CET 2024


Revision: 69423
          https://tug.org/svn/texlive?view=revision&revision=69423
Author:   karl
Date:     2024-01-15 03:15:02 +0100 (Mon, 15 Jan 2024)
Log Message:
-----------
avoid generating a corrupt pdf with certain pdf inclusions, pdftex r916

Revision Links:
--------------
    https://tug.org/svn/texlive?view=revision&revision=916

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
    trunk/Build/source/texk/web2c/pdftexdir/NEWS
    trunk/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc

Modified: trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2024-01-15 00:43:39 UTC (rev 69422)
+++ trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2024-01-15 02:15:02 UTC (rev 69423)
@@ -1,3 +1,10 @@
+2024-01-14  Thanh Han The  <hanthethanh at gmail.com>
+
+	* pdftoepdf.cc (write_epdf): call writeRefs at the end, to write
+	all indirect objects after writing everything else.
+	From pdftex r916 (and test in r915). Original report:
+	https://bugs.ghostscript.com/show_bug.cgi?id=706940
+
 2023-12-24  TANAKA Takuji  <ttk at t-lab.opal.ne.jp>
 
 	* wcfname.test:
@@ -29,7 +36,7 @@
 2023-08-28  Karl Berry  <karl at freefriends.org>
 
 	* tounicode.c (undump_to_unicode): check that gu->name
-	(and gu->unicode_seq) did not undumped as NULL.
+	(and gu->unicode_seq) did not get undumped as NULL.
 	Report from Gregory DUCK,
 	https://tug.org/pipermail/tex-live/2023-August/049406.html.
 

Modified: trunk/Build/source/texk/web2c/pdftexdir/NEWS
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/NEWS	2024-01-15 00:43:39 UTC (rev 69422)
+++ trunk/Build/source/texk/web2c/pdftexdir/NEWS	2024-01-15 02:15:02 UTC (rev 69423)
@@ -1,3 +1,9 @@
+(TeX Live 2024)
+- bugfixes:
+  - more reliable text extraction on BigEndian systems.
+  - more checks against corrupt pfb, fmt, pdf, files.
+  - avoid writing a corrupt pdf with unusual pdf inclusions.
+
 pdfTeX 3.141592653-2.6-1.40.25 (TeX Live 2023) (March 9, 2023)
 - changes:
   - new keyword `shipout' for \special and \pdfliteral, delaying

Modified: trunk/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc	2024-01-15 00:43:39 UTC (rev 69422)
+++ trunk/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc	2024-01-15 02:15:02 UTC (rev 69423)
@@ -1,5 +1,5 @@
 /*
-Copyright 1996-2016 Han The Thanh, <thanh at pdftex.org>
+Copyright 1996-2024 Han The Thanh, <thanh at pdftex.org>
 
 This file is part of pdfTeX.
 
@@ -1026,9 +1026,6 @@
         pdfendstream();
     }
 
-    // write out all indirect objects
-    writeRefs();
-
     // write out all used encodings (and delete list)
     writeEncodings();
 
@@ -1042,6 +1039,9 @@
                                 // Group included in the Page dict
     }
 
+    // write out all indirect objects
+    writeRefs();
+
     // save object list, xref
     pdf_doc->inObjList = inObjList;
     pdf_doc->xref = xref;



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