[jcifs] Infinite Loop Bug

Trent Wood tilde35 at yahoo.com
Mon Aug 6 08:32:42 MDT 2012

When running on a Solaris UNIX server, I encountered an infinite loop. The problematic code is in the readRDataWireFormat method of jcifs.netbios.NameQueryResponse. This method returns zero for the "if( resultCode != 0 || opCode != QUERY )" condition. A result of zero causes the calling method (jcifs.netbios.NameServicePacket - readResourceRecordWireFormat) to loop indefinitely. When I changed that condition to throw an exception, everything works as expected. 


More information about the jCIFS mailing list