[Spread-users] Bug in the Java frontend
Jonathan Stanton
jonathan at cs.jhu.edu
Mon Mar 5 14:30:59 EST 2001
Oops. That's what I get for fixing the java library at the last minute. I
thought I had tested it, but I obviously missed something big.
I'll include a patch to fix it on the website for now and include a fixed
library in a new release soon.
Thanks for spotting this and fixing it.
Jonathan
P.S. if anyone here is seriously using the Java library interface to
Spread, could you backchannel me? I have a few questions I'd like to ask
that could help with it.
On Mon, Mar 05, 2001 at 11:26:45AM +0100, Kiwi wrote:
>
> I found a small bug in the Java frontend of the new 3.15.1 version of
> Spread. Whenever a Java client tries to connect to a Spread daemon, an
> IndexOutOfBoundsException exception is thrown.
>
> This bug occurs in the sendConnect() method of the SpreadConnection
> class when computing the internal buffer containing data for the
> connection. The length of the private name of the server has been added
> since 3.14, but the size of the buffer has not been increased.
>
> Here is the result of the diff command:
>
> SpreadConnection.java:307
> > byte buffer[] = new byte[len + 5]; // Fixed
> < byte buffer[] = new byte[len + 4];
>
> ---
> Julien Dufour
> Posse42
--
-------------------------------------------------------
Jonathan R. Stanton jonathan at cs.jhu.edu
Dept. of Computer Science
Johns Hopkins University
-------------------------------------------------------
More information about the Spread-users
mailing list