Invalid ogg file causes infinite loop

Frank Lai frank.franklai at gmail.com
Tue Jun 7 18:09:22 CEST 2011


Hi all,

I got an invalid ogg file causes infinite loop. The reason is xiph comment
field count is very large (of course wrong value). The attached patch adds a
check before parse loop (comment count cannot > data size).

If the comment count just less than data size but a large value, the loop
still takes a little time to finish. Wondering if there is a better
solution.

Best Regards,
Frank Lai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20110608/30de1afa/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xiphcomment-patch.diff
Type: application/octet-stream
Size: 491 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/taglib-devel/attachments/20110608/30de1afa/attachment.dll 


More information about the taglib-devel mailing list