moby--moby/volume/store
Brian Goff eefb2220c0 Fix usage of boltdb in volume restore
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>
(cherry picked from commit 4876a9047e)
Signed-off-by: Victor Vieux <vieux@docker.com>
2017-01-04 12:42:41 +01:00
..
db.go Fix usage of boltdb in volume restore 2017-01-04 12:42:41 +01:00
errors.go Fix volume Create to check against canonical driver name 2016-12-16 10:44:26 -08:00
restore.go Fix usage of boltdb in volume restore 2017-01-04 12:42:41 +01:00
store.go Merge pull request #29465 from docker/1.13.0-rc4-cherrypicks 2016-12-16 13:12:57 -08:00
store_test.go Implement content addressability for plugins 2016-12-27 13:31:14 -08:00
store_unix.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
store_windows.go Fix typos found across repository 2015-12-13 18:04:12 +02:00