SMBClient icon indicating copy to clipboard operation
SMBClient copied to clipboard

Issue with count 64, while Header seems to be 35 bytes in my test case

Open ensenyourit opened this issue 7 months ago • 0 comments

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?

ensenyourit avatar Jun 15 '25 08:06 ensenyourit