SMBClient
SMBClient copied to clipboard
Issue with count 64, while Header seems to be 35 bytes in my test case
Hi guys, for me it looks like the Header is 35 bytes only.
And the lib crashes.
func read(count: Int) -> Data {
let value = data[offset..<(offset + count)]
offset += count
return Data(value)
}
While you've hardcoded the submission of count 64.
extension ByteReader {
func read() -> Header {
Header(data: read(count: 64))
}
}
Any advices why this could happen?