When search for a number like 1328 from Finder, macOS Spotlight generates the following query: 'InRange(kMDItemContentCreationDate,$time.iso(1327-12-31T23:06:32Z),$time.iso(1328-12-31T23:06:32Z))||_kMDItemContentCreationDateYear=="1328"||InRange(kMDItemContentModificationDate,$time.iso(1327-12-31T23:06:32Z),$time.iso(1328-12-31T23:06:32Z))||_kMDItemContentModificationDateYear=="1328"||*=="1328*"cdw||kMDItemTextContent=="1328*"cdw' This fails as $time.iso is currently (somewhat braindead) converted to a time_t with smb_strtoull() which needs to pass SMB_STR_ALLOW_NEGATIVE for processing negative numbers.
This bug was referenced in samba master: 1b2b08bb7067852ad1bf8847b266baaab06905d7
Created attachment 18782 [details] Patch for 4.22 and 4.23 cherry-picked from master
Pushed to autobuild-v4-{23,22}-test.
This bug was referenced in samba v4-23-test: 441ad465dfc6b0b34b81879ec8b677101f82fdf9
This bug was referenced in samba v4-22-test: 59200ef1002893af3601bc7812d375279729b116
Closing out bug report. Thanks!