[patch] Fix infinite loop in locateInStringList()
Adam D. Moss
adam at gimp.org
Sat Oct 30 13:01:48 EDT 2004
If starting with lo=0 and hi=1 then an infinite
loop could easily result, as i=lo=0 forever so
(lo != hi) forever.
This patch rounds i in a different direction
depending on which boundary moved in the binary
search. Not 100% sure it's correct, but I think
so...
--Adam
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: psearch.patch
URL: <http://icculus.org/pipermail/physfs/attachments/20041030/ae308122/attachment.diff>
More information about the physfs
mailing list