Skip to content

Commit eacb0e9

Browse files
authored
Merge pull request #3783 from ActiveState/mitchell/cp-1265-2
Merge version/0-48-1-RC1 into master
2 parents b215dc9 + 9f30261 commit eacb0e9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

pkg/runtime/depot.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
162162
func (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

0 commit comments

Comments
 (0)