brimdata / super

A novel data lake based on super-structured data
https://zed.brimdata.io/
BSD 3-Clause "New" or "Revised" License
1.38k stars 64 forks source link

Fix panic on filepath.Walk error in ztest.findZTests #5334

Closed nwt closed 5 days ago

nwt commented 5 days ago

If filepath.Walk gets an error from os.Lstat, it invokes its callback with a nil os.FileInfo and the error. This will cause findZTests to panic because its filepath.Walk callback does not check for an error before calling os.FileInfo.IsDir. Fix by checking for an error in the callback.