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

Fixed crash while checking currently installed version #6283

Merged
merged 1 commit into from
Jul 31, 2020

Conversation

simonhong
Copy link
Member

@simonhong simonhong commented Jul 31, 2020

From the crash log, |new_version_|'s ownership not managed well.
When, new version is downloaded, it's used to have that new version.
However, it just copied pointer of another NSString instance.
If source NSString instance is released, copied pointer will become
invalid.

Resolves brave/brave-browser#11008

Submitter Checklist:

Test Plan:

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

@simonhong simonhong added this to the 1.14.x - Nightly milestone Jul 31, 2020
@simonhong simonhong requested a review from iefremov July 31, 2020 08:58
@simonhong simonhong self-assigned this Jul 31, 2020
From the crash log, |new_version_|'s ownership not managed well.
When, new version is downloaded, it's used to have that new version.
However, it just copied pointer of another NSString instance.
If source NSString instance is released, copied pointer will become
invalid.
@simonhong simonhong force-pushed the fix_sparkle_crash branch from c23fd5c to eb800a1 Compare July 31, 2020 10:14
@simonhong
Copy link
Member Author

Merged because only unrelated test(greaselion) and gn_check were failed.

@simonhong simonhong merged commit af5ed4a into master Jul 31, 2020
@simonhong simonhong deleted the fix_sparkle_crash branch July 31, 2020 12:55
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.

[Desktop] Crashes while checking currently installed version on macOS
2 participants