Package: libunac1 Version: 1.8.0-2 Severity: normal Tags: upstream patch A function call in unac.c ought to use size_t rather than int. I think this is the cause of a segfault I've been trying to track down in flactag.
Patch attached. Phil -- System Information: Debian Release: 6.0.1 APT prefers stable APT policy: (700, 'stable'), (600, 'unstable'), (500, 'stable-updates') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libunac1 depends on: ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib libunac1 recommends no packages. libunac1 suggests no packages. -- no debconf information
--- unac.c-orig 2011-04-19 13:54:18.659570997 +0100 +++ unac.c 2011-04-19 13:45:46.165065548 +0100 @@ -13873,9 +13873,9 @@ *out_lengthp = 0; } else { char* utf16 = 0; - int utf16_length = 0; + size_t utf16_length = 0; char* utf16_unaccented = 0; - int utf16_unaccented_length = 0; + size_t utf16_unaccented_length = 0; if(convert(charset, utf16be(), in, in_length, &utf16, &utf16_length) < 0) { return -1;