maciekph / joscar

Automatically exported from code.google.com/p/joscar
0 stars 0 forks source link

net.kano.joscar.SeqNum has an infinite loop #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

net.kano.rv.RvProcessor creates a SeqNum passing in a random Long

If the random Long is negative (which it can be), the loop in line 105
 of SeqNum will run forever.

It should be using unsigned shift (>>>=) instead of signed (>>=).

Original issue reported on code.google.com by daire.mc...@gmail.com on 12 Mar 2010 at 9:02

GoogleCodeExporter commented 9 years ago
I also found this issue.
thanks

Original comment by behum...@gmail.com on 14 Feb 2011 at 1:39

GoogleCodeExporter commented 9 years ago
Good find!  Committed to trunk.

Original comment by jadest...@gmail.com on 3 Mar 2011 at 3:25