I noticed that when samba server receives Find request with insufficient OutputBufferLength,
it will fail the request with NT_STATUS_INFO_LENGTH_MISMATCH.
But Windows 10 returns STATUS_BUFFER_OVERFLOW.
Created attachment 18171 [details]
Windows 10 returns STATUS_BUFFER_OVERFLOW
Created attachment 18172 [details]
Samba returns NT_STATUS_INFO_LENGTH_MISMATCH
Created attachment 18173 [details]
packet capture of windows 10
Created attachment 18174 [details]
packet capture of samba
I wrote a torture to reproduce this issue.