Package: libbtparse0 Version: 0.34-2 Severity: normal Tags: patch The purify_string function crashes if it encounters a two-letter control sequence whose first letter is unrecognized, due to a missing "default" branch in foreign_letter:
$ perl -MText::BibTeX -e 'print Text::BibTeX::purify_string("a{\\kk}bc")'
internal error: foreign_letter(): should never reach end of function
The following patch is due to Guillaume Marceau (gmarceau at gmail.com).
--- /tmp/string_util.c.orig 2008-11-21 17:21:09.000000000 +0100
+++ /tmp/string_util.c 2008-11-21 17:22:30.000000000 +0100
@@ -187,6 +187,9 @@
{ *letter = L_SSHARP_U; return TRUE; }
else
return FALSE;
+
+ default:
+ return FALSE;
}
break;
default:
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26 (SMP w/2 CPU cores)
Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libbtparse0 depends on:
ii libc6 2.7-16 GNU C Library: Shared libraries
libbtparse0 recommends no packages.
libbtparse0 suggests no packages.
-- no debconf information
--
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
2008-11-20 Universal Children's Day http://unicef.org/
1948-12-10 Universal Declaration of Human Rights http://everyhumanhasrights.org
signature.asc
Description: Digital signature

