Skip to content

[windows][installer] fix crash on update#7130

Merged
AenBleidd merged 1 commit into
masterfrom
vko_fix_windows_installer_issue
Jun 15, 2026
Merged

[windows][installer] fix crash on update#7130
AenBleidd merged 1 commit into
masterfrom
vko_fix_windows_installer_issue

Conversation

@AenBleidd

@AenBleidd AenBleidd commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary by cubic

Fixes a Windows installer crash during updates by safely handling empty registry strings in the custom action.

  • Bug Fixes
    • Guard against empty values before trimming the trailing null in BOINCCABase::GetRegistryValue.
    • Added SetupStateRestored_Set_Empty_Registry_Values unit test to ensure no crash and correct defaults when registry values are empty.

Written for commit c33cbb8. Summary will update on new commits.

Review in cubic

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
@AenBleidd AenBleidd added this to the Client/Manager 8.2.14 milestone Jun 15, 2026
Copilot AI review requested due to automatic review settings June 15, 2026 03:24
@github-project-automation github-project-automation Bot moved this to In progress in Client/Manager Jun 15, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 2 files

Re-trigger cubic

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a Windows installer update crash in the boinccas custom action by making BOINCCABase::GetRegistryValue resilient to zero-length registry data, and adds a regression test to ensure empty registry values don’t crash the restore-setup-state path.

Changes:

  • Guard strValue.back() with an emptiness check before trimming a trailing '\0' in BOINCCABase::GetRegistryValue.
  • Add a unit test covering the “setup state stored + registry values present but empty” scenario and asserting expected defaults/outputs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
clientsetup/win/boinccas.cpp Prevents a crash by avoiding .back() on an empty registry value buffer before trimming a trailing null.
tests/unit-tests/boinccas/test_boinccas_CARestoreSetupState.cpp Adds regression coverage for empty registry values during setup-state restore, validating no crash and correct property defaults.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AenBleidd AenBleidd merged commit 32a8674 into master Jun 15, 2026
273 checks passed
@AenBleidd AenBleidd deleted the vko_fix_windows_installer_issue branch June 15, 2026 03:55
@github-project-automation github-project-automation Bot moved this from In progress to Merged in Client/Manager Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants