I accidentally messed up the config file, so I had a deny rule with no pkg key. This defaulted to the empty string. Then ultimately it panicked here with "index out of range [-1]".
|
if ioc[len(ioc)-1] == '$' { |
Please add some defensive checks to output a clear error message instead of crashing.
I accidentally messed up the config file, so I had a deny rule with no
pkgkey. This defaulted to the empty string. Then ultimately it panicked here with "index out of range [-1]".depguard/settings.go
Line 236 in f99c9d8
Please add some defensive checks to output a clear error message instead of crashing.