Package: tth
Version: 3.60-1
Severity: grave
Tags: patch

I wanted to try out tth but it segfaults on any tex file I give it...
The following patch seems to fix it but I don't know if it could have any
sideeffects (read: not tested very well):

diff -Naur tth-3.67.bak/tth.c tth-3.67/tth.c
--- tth-3.67.bak/tth.c  2005-02-18 19:24:59.000000000 -0800
+++ tth-3.67/tth.c      2005-03-04 19:12:35.200200472 -0800
@@ -22352,7 +22352,7 @@
   if(tth_delimdef){
     yy_pop_state();
     chs2=yytext-1;
-    while(chs2 != NULL){
+    while((chs2 != NULL) && ((chs2+1) != NULL)){
       chscratch=chs2;
       chs2=strstr(chscratch+1,"#");
     }

Gruesse,
        Frank Lichtenheld

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.10-powerpc
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages tth depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to