Source: texlive-bin
Version: 2025.20250727.75242+ds-4
Severity: important
tags: patch

Hello, since you already know gnu++ flag is a workaround for real code issues, 
I'm proposing a patch we uploaded to Ubuntu when we got the FTBFS on s390x.
The patch was forwarded and committed upstream, but not in the release 
currently packaged in sid
http://launchpadlibrarian.net/827892801/texlive-bin_2025.20250727.75242+ds-4_2025.20250727.75242+ds-4ubuntu1.diff.gz

 diff -Nru 
texlive-bin-2025.20250727.75242+ds/debian/patches/mendexk-upmendex-fix-pnumconv.patch
 
texlive-bin-2025.20250727.75242+ds/debian/patches/mendexk-upmendex-fix-pnumconv.patch
--- 
texlive-bin-2025.20250727.75242+ds/debian/patches/mendexk-upmendex-fix-pnumconv.patch
    1970-01-01 00:00:00.000000000 +0000
+++ 
texlive-bin-2025.20250727.75242+ds/debian/patches/mendexk-upmendex-fix-pnumconv.patch
    2025-09-30 22:53:56.000000000 +0000
@@ -0,0 +1,77 @@
+Author: Ryan Lee <[email protected]>
+Subject: Fix uninit memory access in pnumconv caused my missing else
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/texlive-bin/+bug/2125767
+Forwarded: https://tug.org/pipermail/tex-k/2025-October/004208.html
+
+Index: b/texk/mendexk/convert.c
+===================================================================
+--- a/texk/mendexk/convert.c    2025-09-30 16:45:05.624911321 -0700
++++ b/texk/mendexk/convert.c    2025-09-30 16:45:18.913176387 -0700
+@@ -478,6 +478,7 @@
+             case 'c':
+             case 'C':
+                 if (i==0) cc=100;
++                else {
+                     switch (page[i-1]) {
+                     case 'x':
+                     case 'X':
+@@ -496,6 +497,7 @@
+                     default:
+                         break;
+                     }
++                }
+                 break;
+ 
+             case 'd':
+@@ -522,6 +524,7 @@
+             case 'm':
+             case 'M':
+                 if (i==0) cc=1000;
++                else {
+                     switch (page[i-1]) {
+                     case 'c':
+                     case 'C':
+@@ -536,6 +539,7 @@
+                     default:
+                         break;
+                     }
++                }
+                 break;
+ 
+             default:
+Index: b/texk/upmendex/convert.c
+===================================================================
+--- a/texk/upmendex/convert.c    2025-09-30 16:45:05.624911321 -0700
++++ b/texk/upmendex/convert.c    2025-09-30 16:45:30.128143004 -0700
+@@ -398,6 +398,7 @@
+             case 'c':
+             case 'C':
+                 if (i==0) cc=100;
++                else {
+                     switch (page[i-1]) {
+                     case 'x':
+                     case 'X':
+@@ -416,6 +417,7 @@
+                     default:
+                         break;
+                     }
++                }
+                 break;
+ 
+             case 'd':
+@@ -442,6 +444,7 @@
+             case 'm':
+             case 'M':
+                 if (i==0) cc=1000;
++                else {
+                     switch (page[i-1]) {
+                     case 'c':
+                     case 'C':
+@@ -456,6 +459,7 @@
+                     default:
+                         break;
+                     }
++                }
+                 break;
+ 
+             default:
diff -Nru texlive-bin-2025.20250727.75242+ds/debian/patches/series 
texlive-bin-2025.20250727.75242+ds/debian/patches/series
--- texlive-bin-2025.20250727.75242+ds/debian/patches/series    2025-08-03 
20:18:06.000000000 +0000
+++ texlive-bin-2025.20250727.75242+ds/debian/patches/series    2025-10-29 
15:23:59.000000000 +0000
@@ -47,3 +47,4 @@
texlive_svn_r75793.diff
texlive_svn_r74888.diff
zziplib.diff
+mendexk-upmendex-fix-pnumconv.patch



thanks for considering it

Gianfranco

Reply via email to