Skip to content

fix: Add missing lock around files dictionary - #1260

Merged
vbreuss merged 1 commit into
TestableIO:mainfrom
wimoy:wimoy-patch-1
Apr 8, 2025
Merged

fix: Add missing lock around files dictionary#1260
vbreuss merged 1 commit into
TestableIO:mainfrom
wimoy:wimoy-patch-1

Conversation

@wimoy

@wimoywimoy commented Apr 6, 2025

Copy link
Copy Markdown
Contributor

The files dictionary could be modified and resized by another thread. Without the lock, the read is not synchronized and can cause a KeyNotFoundException.

@wimoywimoy changed the title Add missing lock around files variablefix: Add missing lock around files variableApr 6, 2025
@wimoywimoy changed the title fix: Add missing lock around files variablefix: Add missing lock around files dictionaryApr 6, 2025
The files dictionary could be modified and resized by another thread. Without the lock, the read is not synchronized and can cause a KeyNotFoundException.
@vbreuss
vbreuss requested a review from CopilotApril 8, 2025 06:24

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@vbreuss
vbreuss merged commit 4e3c7df into TestableIO:mainApr 8, 2025
@vbreuss

Copy link
Copy Markdown
Member

Thanks, @wimoy

@github-actions

Copy link
Copy Markdown

This is addressed in release v22.0.14.

@github-actionsgithub-actionsBot added the state: released Issues that are released label Apr 18, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state: releasedIssues that are released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@wimoy@vbreuss