[Vorbis-dev] [PATCH] checking for negative link

fidlej at centrum.cz fidlej at centrum.cz
Wed Dec 1 06:19:48 PST 2004


This patch ensures that lib/lib/vorbisfile.c will not use negative value
of "link" when seeking.
Negative value (link=-1) was used by ov_time_seek(vf, 0.0) at least.

Double arithmetic is not precise, it depends on order of operands.
"for(i=0;i<links;i++) sum+=x[i]" gives slightly different result than
"for(i=links-1;i>=0;i--) sum+=x[i]".


I tried add this patch to http://bugs.xiph.org/show_bug.cgi?id=577
bug report, but the bugzilla always says "You did not specify a file to attach."
Is the bugzilla working?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 1384 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20041201/e7e71b2d/attachment.bin


More information about the Vorbis-dev mailing list