Bug#786718: libmpg123: incorrect check/decoding for utf-16 surrogates in id3 parser
Sebastian Ramacher
sramacher at debian.org
Mon May 25 09:57:54 UTC 2015
Control: forwarded -1 https://sourceforge.net/p/mpg123/bugs/216/
Control: tags -1 + upstream patch
Hi Yuriy
On 2015-05-24 23:08:12, Yuriy M. Kaminskiy wrote:
> Package: libmpg123-0
> Version: 1.20.1-2
> Severity: normal
>
> Dear Maintainer,
>
> utf-16 decoder in id3 parser improperly identifies surrogate pairs,
> resulting in improper identification of characters in 0xf800-0xfffe range as
> leading surrogate and decoding failure.
>
> E.g. attempt to decode title "「x」~y~" results in:
> [id3.c:1065] error: Invalid UTF16 surrogate pair at 0 (0xff62).
> and empty parsed title.
> Attempt to decode title "xy&zte" results in:
> [id3.c:1065] error: Invalid UTF16 surrogate pair at 4 (0xff06).
> and "xy" in parsed title.
>
> Patch attached, verified to work.
> This bug still present in the latest upstream version (1.22.2).
Thank you for your bug report. I've forwarded it upstream including your patch.
Cheers
--
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20150525/62988f5f/attachment.sig>
More information about the pkg-multimedia-maintainers
mailing list