Hi Samba, 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. https://gitlab.com/samba-team/devel/samba/-/commit/a8fbaaf590f90791aba952d708488c05155b38e5 patch: https://gitlab.com/samba-team/devel/samba/-/commit/5d82ae6d59ef10b71082f32e9fd3951e9bde34cb