Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix index out-of-bounds in startAttachingCrashLogMessages #907

Merged

Conversation

mallexxx
Copy link
Collaborator

@mallexxx mallexxx commented Jul 23, 2024

Task/Issue URL: https://app.asana.com/0/414709148257752/1207877553454228/f
iOS PR:
macOS PR: duckduckgo/macos-browser#3006
What kind of version bump will this require?: Patch

Optional:

Tech Design URL:
CC:

Description:

  • Fixes Out-of-bounds exception when no records in crashDiagnostics array

Steps to test this PR:

  1. Simulate a crash in App Store target with debugger detached
  2. Set a breakpoint at CrashCollection.swift:122 and remove items from crashDiagnostics array (using LLDB: po crashDiagnostics.removeAll())
  3. validate the code is not crashing when adding a record to the array

OS Testing:

  • iOS 14
  • iOS 15
  • iOS 16
  • macOS 10.15
  • macOS 11
  • macOS 12

Internal references:

Software Engineering Expectations
Technical Design Template

@mallexxx mallexxx requested a review from Bunn July 23, 2024 13:45
@mallexxx mallexxx merged commit ec7bfbc into hotfix/171.1.1-2 Jul 23, 2024
9 checks passed
@mallexxx mallexxx deleted the hotfix/171.1.1-2-fix-crash-diagnostics-oob branch July 23, 2024 14:25
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.

2 participants