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

Merged

Conversation

mallexxx
Copy link
Collaborator

Please review the release process for BrowserServicesKit here.

Required:

Task/Issue URL: https://app.asana.com/0/414709148257752/1207877553454228/f
iOS PR:
macOS PR:
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

Copy link
Contributor

@brindy brindy left a comment

Choose a reason for hiding this comment

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

👍 untested but looks good

@mallexxx mallexxx merged commit 8adaa84 into hotfix/171.2.0-1 Jul 23, 2024
9 checks passed
@mallexxx mallexxx deleted the hotfix/171.2.0-1-fix-crash-diagnostics-oob branch July 23, 2024 14:17
brindy pushed a commit to duckduckgo/iOS that referenced this pull request Jul 23, 2024
Task/Issue URL: https://app.asana.com/0/414709148257752/1207877553454228/f
BSK PR: duckduckgo/BrowserServicesKit#906

Description:

Fixes Out-of-bounds exception when no records in crashDiagnostics array
Rollback crash collection in C++ exception handler
Steps to test this PR:

Simulate a crash in App Store target with debugger detached
Set a breakpoint at CrashCollection.swift:122 and remove items from crashDiagnostics array (using LLDB: po crashDiagnostics.removeAll())
validate the code is not crashing when adding a record to the array
bwaresiak pushed a commit to duckduckgo/iOS that referenced this pull request Jul 23, 2024
Task/Issue URL: https://app.asana.com/0/414709148257752/1207877553454228/f
BSK PR: duckduckgo/BrowserServicesKit#906

Description:

Fixes Out-of-bounds exception when no records in crashDiagnostics array
Rollback crash collection in C++ exception handler
Steps to test this PR:

Simulate a crash in App Store target with debugger detached
Set a breakpoint at CrashCollection.swift:122 and remove items from crashDiagnostics array (using LLDB: po crashDiagnostics.removeAll())
validate the code is not crashing when adding a record to the array
samsymons added a commit that referenced this pull request Jul 25, 2024
* main:
  Moves evaluateJS methods to main thread (#908)
  Bumped C-S-S to 6.4.0 (#910)
  Don't show key icon for empty passwords (#890)
  Hotfix: fix index out-of-bounds in startAttachingCrashLogMessages (#906)
  Add support for additionalCampaignPixelParams (#899)
  Update breakage report locale to JSON format (#905)
  Add support for additionalCampaignPixelParams
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