mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
bolt k/v pairs are only valid for the life of a transaction. This means the memory that the k/v pair is referencing may be invalid if it is accessed outside of the transaction. This can potentially cause a panic. For reference: https://godoc.org/github.com/boltdb/bolt#hdr-Caveats To fix this issue, unmarshal the stored data into volume meta before closing the transaction. Signed-off-by: Brian Goff <cpuguy83@gmail.com> Upstream-commit: 4876a9047ebfd66294d88482a1b4b24634a632e6 Component: engine