>>>>> "FK" == Frank Küster <[EMAIL PROTECTED]> writes:
FK> [EMAIL PROTECTED] (Uwe Steinmann) wrote: >> On Fri, Jan 21, 2005 at 03:22:39PM +0100, Frank Küster wrote: >>> Prabhu Ramachandran <[EMAIL PROTECTED]> wrote: >>> > Package: tetex-bin Version: 2.0.2-25 Severity: important >>> > dvipdfm segfaults on the following trivial LaTeX file. FK> I also did not get a segfault in my i386 sarge chroot. I'm FK> helpless - how can one debug this? The only idea I have, since FK> Prabhu seems to be familiar with gdb, would be to recompile FK> dvipdfm without stripping and optimising. I think this should FK> be easily possible in the following way: [...] OK, I've found the bug. Basically, the asn_date function in texk/dvipdfm/pdfdoc.c was writing to a string but did not allocate enough memory for the string before writing to it. Attached is a trivial patch for the file texk/dvipdfm/pdfdoc.c. With this patch dvipdfm works fine for me and does not segfault anymore. HTH. prabhu
--- pdfdoc.c.orig 2005-01-22 16:12:30.000000000 +0530 +++ pdfdoc.c 2005-01-22 16:12:38.000000000 +0530 @@ -239,7 +239,7 @@ #define timezone 0l #endif /* TM_GM_TOFF */ #endif /* HAVE_TIMEZONE */ - static char date_string[24]; + static char date_string[32]; time_t current_time; struct tm *bd_time; if (debug) {