Skip to content

2.2.2 — MetricKit diagnostic crash fix

Choose a tag to compare

@Rabithua Rabithua released this 06 Sep 16:46
ff2c65f

Fix a crash when processing deeply nested MetricKit diagnostic reports.

  • Bound JSON nesting before Foundation parsing and serialization, preventing callback-thread stack exhaustion.
  • Replace JSON beyond 32 container levels with a safe omission marker, without exposing raw payload text.
  • Preserve normal JSON redaction, including escaped strings and sensitive keys.

Also includes the optional host-provided update reminder before bug reports from #55. It is inactive unless the host supplies an update checker.

Validated with 235 Swift tests, iOS package and demo builds, and a constrained-stack regression matching the reported failure path. No host API changes are required; update the package dependency to 2.2.2.