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 #3006

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

mallexxx
Copy link
Collaborator

Task/Issue URL: https://app.asana.com/0/414709148257752/1207877553454228/f
BSK PR: duckduckgo/BrowserServicesKit#906

Description:

  1. Fixes Out-of-bounds exception when no records in crashDiagnostics array
    Steps to test this PR:

  2. Simulate a crash in App Store target with debugger detached

  3. Set a breakpoint at CrashCollection.swift:122 and remove items from crashDiagnostics array (using LLDB: po crashDiagnostics.removeAll())

  4. validate the code is not crashing when adding a record to the array

Definition of Done:


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@mallexxx mallexxx requested a review from Bunn July 23, 2024 13:58
Copy link

🚫 The Asana task linked in the PR description is not added to macOS App Board project.

  1. Verify that the correct task is linked in the PR.
    • ⚠️ Please use the actual implementation task, rather than the Code Review subtask.
  2. Verify that the task is added to macOS App Board project.
  3. When ready, remove the bot: not in app board label to retrigger the check.

@github-actions github-actions bot added bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project labels Jul 23, 2024
@Bunn Bunn removed the bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project label Jul 23, 2024
@mallexxx mallexxx merged commit 161d8d2 into hotfix/1.97.1 Jul 23, 2024
28 of 29 checks passed
@mallexxx mallexxx deleted the hotfix/1.97.1-fix-crash-diagnostics-oob branch July 23, 2024 15:03
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