Skip to content

Conversation

@drvarmin
Copy link

@drvarmin drvarmin commented Dec 1, 2025

Changes in this pull request

  • Fixes a crash in SwiftyJSON.swift:267 caused by a race condition when multiple threads access JSON dictionaries concurrently. The unwrap function was mutating a dictionary while iterating over it with forEach, which caused a crash during Copy-on-Write when accessed from multiple threads. The fix creates a new dictionary instead of mutating during iteration.

Checklist

  • All unit tests pass.
  • I added an entry to the CHANGELOG.md for any breaking changes, enhancements, or bug fixes.
  • I have run swiftlint in the main directory and fixed any issues.
  • I have reviewed the contributing guide

@drvarmin drvarmin requested a review from yusuftor December 1, 2025 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant