<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 17 Oct 2024 at 18:06, user202729--- via luatex <<a href="mailto:luatex@tug.org">luatex@tug.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, can I get an update on this?<br>
<br>
Anyway, I think the short version is you can just apply this patch:<br>
<br>
```<br>
diff --git a/source/texk/web2c/luatexdir/tex/printing.c b/source/texk/web2c/luatexdir/tex/printing.c<br>
index 8a52700..8ae11b4 100644<br>
--- a/source/texk/web2c/luatexdir/tex/printing.c<br>
+++ b/source/texk/web2c/luatexdir/tex/printing.c<br>
@@ -482,7 +482,8 @@ void tprint(const char *sss)<br>
}<br>
/*tex What is left is the 3 term/log settings. */<br>
if (dolog || doterm) {<br>
- buffer = xmalloc(strlen(sss)*3);<br>
+ size_t len = strlen(sss);<br>
+ buffer = xmalloc(len*3);<br>
buffer[0] = '\0';<br>
/*tex The |wrapup_run| callback acts when the log file is already closed.*/<br>
if (dolog && log_opened_global) {<br>
@@ -532,6 +533,7 @@ void tprint(const char *sss)<br>
fputs(buffer, term_out);<br>
}<br>
}<br>
+ tally += len;<br>
free(buffer);<br>
}<br>
}<br>
```<br>
<br>
This is a test file<br>
<br>
```tex<br>
\errorcontextlines=10000<br>
\def\c{1 \errorerror 2}<br>
\def\b #1 {7 #1 8}<br>
\def\a{5 \b {3 \c 4} 6}<br>
\hbox{7 \a 8}<br>
\stop<br>
```<br></blockquote><div><br></div><div>Still looking at it, but I don't exclude that I will apply your patch. </div><div><br></div><div>--</div><div>luigi</div><div> </div></div></div>