Control: tags 620375 + pending
Control: tags 999194 + patch
Control: tags 999194 + pending

Dear maintainer,

I've prepared an NMU for mathtex (versioned as 1.03-1.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.

Regards.

diff -u mathtex-1.03/debian/changelog mathtex-1.03/debian/changelog
--- mathtex-1.03/debian/changelog
+++ mathtex-1.03/debian/changelog
@@ -1,3 +1,12 @@
+mathtex (1.03-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch to fix a hang due to use of strcpy() on overlapping region.
+    Thanks to Steven McDonald. Closes: #620375.
+  * debian/rules: Add build-{arch,indep} (Closes: #999194).
+
+ -- Marcos Talau <mar...@talau.info>  Thu, 31 Mar 2022 22:07:51 -0300
+
 mathtex (1.03-1) unstable; urgency=high
 
   * New upstream release.
diff -u mathtex-1.03/debian/rules mathtex-1.03/debian/rules
--- mathtex-1.03/debian/rules
+++ mathtex-1.03/debian/rules
@@ -75,4 +75,6 @@
 	dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+build-arch: build
+build-indep: build
+.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install configure
diff -u mathtex-1.03/mathtex.1 mathtex-1.03/mathtex.1
--- mathtex-1.03/mathtex.1
+++ mathtex-1.03/mathtex.1
@@ -29,4 +29,4 @@
 On Debian systems, the complete text of the GNU General Public 
 License can be found in /usr/share/common-licenses/GPL. 
  
-.\" created by instant / docbook-to-man, Tue 01 Dec 2009, 19:59 
+.\" created by instant / docbook-to-man 
only in patch2:
unchanged:
--- mathtex-1.03.orig/mathtex.c
+++ mathtex-1.03/mathtex.c
@@ -3455,7 +3455,9 @@
 shift from left or right to accommodate replacement of its nfirst chars by to
 -------------------------------------------------------------------------- */
 if ( tolen < nfirst )			/* shift left is easy */
-  strcpy(from,from+nshift);		/* because memory doesn't overlap */
+  { char *pfrom = from;
+    for ( ; *pfrom != '\0'; pfrom++ )
+      *pfrom = *(pfrom+nshift); }
 if ( tolen > nfirst )			/* need more room at start of from */
   { char *pfrom = from+strlen(from);	/* ptr to null terminating from */
     for ( ; pfrom>=from; pfrom-- )	/* shift all chars including null */

Reply via email to