texlive[69152] Build/source/texk/web2c/luatexdir: complain if more
commits+karl at tug.org
commits+karl at tug.org
Sun Dec 17 19:42:04 CET 2023
Revision: 69152
https://tug.org/svn/texlive?view=revision&revision=69152
Author: karl
Date: 2023-12-17 19:42:04 +0100 (Sun, 17 Dec 2023)
Log Message:
-----------
complain if more than 2^16 pages in dvi mode
Modified Paths:
--------------
trunk/Build/source/texk/web2c/luatexdir/ChangeLog
trunk/Build/source/texk/web2c/luatexdir/tex/mainbody.c
Modified: trunk/Build/source/texk/web2c/luatexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/ChangeLog 2023-12-17 00:43:18 UTC (rev 69151)
+++ trunk/Build/source/texk/web2c/luatexdir/ChangeLog 2023-12-17 18:42:04 UTC (rev 69152)
@@ -1,3 +1,10 @@
+2023-12-17 Karl Berry <karl at freefriends.org>
+
+ * tex/mainbody.c (close_files_and_terminate): complain if
+ more than 2^16 pages in DVI mode, since DVI format is limited
+ to that many. Report from Nasser Abbasi for tex4ht:
+ https://puszcza.gnu.org.ua/bugs/?618
+
2023-11-20 Karl Berry <karl at freefriends.org>
* luazlib/lzlib.c: relax zlib version check to just checking
Modified: trunk/Build/source/texk/web2c/luatexdir/tex/mainbody.c
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/tex/mainbody.c 2023-12-17 00:43:18 UTC (rev 69151)
+++ trunk/Build/source/texk/web2c/luatexdir/tex/mainbody.c 2023-12-17 18:42:04 UTC (rev 69152)
@@ -650,6 +650,16 @@
}
}
wake_up_terminal();
+ /* DVI format only supports 2^16 pages. If we have more than that,
+ give an error. Original TeX does not, but nowadays people might
+ have larger files, especially with tex4ht, which makes profligate
+ use of pages, so it's useful to explicitly complain.
+ */
+ if (get_o_mode() == OMODE_DVI && total_pages > 65536) {
+ formatted_error("dvi backend",
+ "more than 65536 pages is unsupported: %d", total_pages);
+ history = fatal_error_stop;
+ }
/*tex
Rubish, these \PDF arguments, passed, needs to be fixed, e.g. with a
dummy in \DVI.
More information about the tex-live-commits
mailing list.