Package: udftools
Version: 1.0.0b3-14.2
Severity: normal
Tags: patch
Pretty obvious bug which makes UTF-8 parser unusable on anything else than
ASCII.
diff -ur -p udftools-1.0.0b3/libudffs/unicode.c
udftools-1.0.0b3-mod/libudffs/unicode.c
--- udftools-1.0.0b3/libudffs/unicode.c 2002-11-26 08:18:51.000000000 +0100
+++ udftools-1.0.0b3-mod/libudffs/unicode.c 2012-05-14 02:23:29.509911310
+0200
@@ -63,7 +63,7 @@ int encode_utf8(char *out, char *hdr, ch
int inlen = strlen(in);
int utf_cnt, len = 1, i;
uint32_t utf_char, max_val;
- char c;
+ unsigned char c;
out[0] = 8;
max_val = 0xFF;
@@ -92,7 +92,7 @@ try_again:
if (utf_cnt)
{
utf_char = (utf_char << 6) | (c & 0x3F);
- if (--utf_char)
+ if (--utf_cnt)
continue;
}
else
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages udftools depends on:
ii libc6 2.13-32
ii libreadline6 6.2-8
Versions of packages udftools recommends:
ii udev 175-3.1
Versions of packages udftools suggests:
pn dvd+rw-tools <none>
pn pmount <none>
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]