Clone slice before unmarshaling in tx #1492

Merged
fyrchik merged 3 commits from fyrchik/frostfs-node:fix-sigsegv into master 2024-11-13 07:30:26 +00:00

3 commits

Author SHA1 Message Date
14fa58d32e
[#1492] metabase: Fix import formatting
All checks were successful
Tests and linters / Run gofumpt (pull_request) Successful in 4m45s
DCO action / DCO (pull_request) Successful in 5m1s
Pre-commit hooks / Pre-commit (pull_request) Successful in 5m12s
Tests and linters / Staticcheck (pull_request) Successful in 5m44s
Tests and linters / gopls check (pull_request) Successful in 5m40s
Vulncheck / Vulncheck (pull_request) Successful in 5m45s
Tests and linters / Lint (pull_request) Successful in 6m26s
Build / Build Components (pull_request) Successful in 6m42s
Tests and linters / Tests (pull_request) Successful in 8m58s
Tests and linters / Tests with -race (pull_request) Successful in 9m5s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-11-13 10:14:06 +03:00
bf642ed9b6
[#1492] metabase: Ensure Unmarshal() is called on a cloned slice
The slice returned from bucket.Get() is only valid during the tx
lifetime. Cloning it is not necessary everywhere, but better safe than
sorry.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-11-13 10:13:29 +03:00
8f4e78f662
[#1492] metabase: Fix typo in objData
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-11-13 10:13:09 +03:00