hierynomus / smbj

Server Message Block (SMB2, SMB3) implementation in Java
Other
713 stars 180 forks source link

transport.tcp.direct.DirectTcpPacketReader - java.lang.StringIndexOutOfBoundsException: String index out of range: -1 #729

Closed dkrysler closed 2 years ago

dkrysler commented 2 years ago

We are trying to scan an SMB server and we constantly get the error java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Here is the log output

[Packet Reader for 10.90.9.9] com.hierynomus.smbj.transport.tcp.direct.DirectTcpPacketReader - ParameterizedMessage[messagePattern={} stopped., stringArgs=[Thread[Packet Reader for 10.90.9.9,5,main]], throwable=null]"
... 9 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
dkrysler commented 2 years ago

The issue is not in the DirectTcpPacketReader.