zot
zot copied to clipboard
hardening: verify that filesystem subpaths are indeed under rootDir
Although I think the callers look safe wrt to this right now, I do think it would be worthwhile to add a check to make sure that the filepath.Abs(dir) is a sub-path of is.rootDir.