Detected during my audit, right before fuzzing, the code that checked for presence of hyphens per path segment assumed that the part would always be non-empty. However, with paths such as: * m/4/ * /44/ * m/4/// it'd panic with a runtime slice out of bounds. With this new change, we now: * firstly strip the right trailing slash * on finding any empty segments of a path return an error Fixes #8557 |
||
|---|---|---|
| .. | ||
| testdata | ||
| algo_test.go | ||
| algo.go | ||
| doc.go | ||
| fundraiser_test.go | ||
| hdpath_test.go | ||
| hdpath.go | ||