File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ and this project adheres to
1010
1111### Security
1212
13- Addressed all known, fixable CVEs.
13+ - Addressed all known, fixable CVEs.
14+
15+ ### Fixed
16+
17+ - Fixed occasional panic due to a concurrent map read/write during runtime setup.
1418
1519## 0.48.0
1620
Original file line number Diff line number Diff line change @@ -160,6 +160,9 @@ func (d *depot) SetCacheSize(mb int) {
160160// Artifact metadata comes from the depot's cache, and may not exist for installed artifacts that
161161// predate the cache.
162162func (d * depot ) Exists (id strfmt.UUID ) (bool , * artifactInfo ) {
163+ d .mapMutex .Lock ()
164+ defer d .mapMutex .Unlock ()
165+
163166 if _ , ok := d .artifacts [id ]; ok {
164167 if artifact , exists := d .config .Cache [id ]; exists {
165168 return true , artifact
You can’t perform that action at this time.
0 commit comments