forked from TrueCloudLab/frostfs-node
e26dc0a6e3
In previous implementation `Config.Sub` method could lead to the violation of the internal `path` slice because of `append`. This has been observed on deeply nested subsections. Fix `Config.Sub` to copy internal slice in order to prevent violations. Cover problem case in test config files and unit test. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru> |
||
---|---|---|
.. | ||
internal | ||
logger | ||
metrics | ||
profiler | ||
test | ||
calls.go | ||
calls_test.go | ||
cast.go | ||
cast_test.go | ||
config.go | ||
opts.go | ||
util.go |