[Spread-users] Bug in the Java frontend

Kiwi julien at posse42.net
Mon Mar 5 05:26:45 EST 2001

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:

>                byte buffer[] = new byte[len + 5]; // Fixed
<                byte buffer[] = new byte[len + 4];

Julien Dufour
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 911 bytes
Desc: not available
Url : http://lists.spread.org/pipermail/spread-users/attachments/20010305/220000d9/attachment.bin 

More information about the Spread-users mailing list