Package: txt2pdbdoc
Version: 1.4.4-4
Severity: normal
Tags: patch

*** Please type your report below this line ***
txt2pdbdoc will core dump when compress chinese document. Function
compress got bigger output then input data, so buffer overflowed.
Double the compress data buffer size can fix this bug.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-686
Locale: LANG=zh_CN.GBK, LC_CTYPE=zh_CN.GBK (charmap=locale: Cannot set
LC_CTYPE to default locale: No such file or directorylocale: Cannot
set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)

Versions of packages txt2pdbdoc depends on:
ii  libc6                         2.3.5-11   GNU C Library: Shared libraries an
ii  perl                          5.8.7-10   Larry Wall's Practical Extraction

txt2pdbdoc recommends no packages.

-- debconf information excluded
--- txt2pdbdoc.c.orig	2003-12-04 13:21:45.000000000 +0800
+++ txt2pdbdoc.c	2006-01-07 15:06:01.000000000 +0800
@@ -67,7 +67,7 @@
 };
 
 /* macros */
-#define	NEW_BUFFER(b)	(b)->data = malloc( (b)->len = BUFFER_SIZE )
+#define	NEW_BUFFER(b)	(b)->data = malloc( (b)->len = BUFFER_SIZE*2 )
 
 #define	GET_Word(f,n) \
 	{ if ( fread( &n, 2, 1, f ) != 1 ) read_error(); n = ntohs(n); }

Reply via email to