libsmb2 icon indicating copy to clipboard operation
libsmb2 copied to clipboard

Wrong signature in received PDU on MacOS Big Sur Host

Open hgourvest opened this issue 3 years ago • 3 comments

https://github.com/sahlberg/libsmb2/blob/40550b0cbc4bb3d38800770749fe60e0e9485155/lib/socket.c#L578

I have a signature verification problem with Mac OS Big Sur, it doesn't happen when listing files, only when trying to open a file and read it. I use the Sync API, SMB2_VERSION_ANY2, SMB2_NEGOTIATE_SIGNING_ENABLED, on Android ARM v8.

hgourvest avatar May 10 '22 12:05 hgourvest

Are you using libsmb2 from a single thread, or multiple? Also, it's unclear to me which system you've got libsmb2 running on, the Mac or an Android device? If Mac, does it have an M1/M2 chip, or an Intel one?

delins avatar Aug 03 '22 22:08 delins

I can have multiple threads on separate connections. The program that uses the library is an android application that connects to a macOS host. Windows and Linux hosts work fine. I had to comment out the verification code to be able to read the files, no corruption detected.

hgourvest avatar Aug 04 '22 15:08 hgourvest

It's likely the same issue as #230 then; using multiple threads and signing enabled

delins avatar Aug 09 '22 13:08 delins

Close as duplicate of #230

sahlberg avatar Jan 16 '23 06:01 sahlberg