Launcher: install, repair and update can delete or overwrite a file replaced after the backup
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start with the install, repair and update paths in clean/installer/src/wg_core/install.cpp (lines 788-838) and the helpers in util.cpp (lines 120-149), where the backup is hashed and verified before the target is acted on by path. Trace where the disable target is deleted, the rename destination is removed, and MOVEFILE_REPLACE_EXISTING or CopyFileW(..., FALSE) is used. Done means the target is held or created fail-if-present through the action, so a file replaced after the backup is detected and kept, with race tests covering the whole operation.
Written by the indexing model from the issue text.
Description
Install, repair and update (clean/installer/src/wg_core/install.cpp:788-838, util.cpp:120-149) hash and verify a backup, then act on the target by path: they delete a disable target, delete a rename destination, and write payloads with MOVEFILE_REPLACE_EXISTING or CopyFileW(..., FALSE).
If another program replaces the target after the backup, or creates a target that was absent, the new file is deleted or overwritten while the backup holds the old bytes. This also covers repair and update after a restore, and the FSR rename-aside.
Expected: hold and verify the destination through the action (one handle), or create with fail-if-present, so a replacement is detected and kept. Needs race tests across the whole operation.
Found in the review of #47.
- Dominant language
- C++
- Stars
- 12
- Forks
- 2
- Avg merge
- 3h 10m
- Merged PRs (30d)
- 171
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from phantoslayer21/wronggpu
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
phantoslayer21/wronggpu#275 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
phantoslayer21/wronggpu#274 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
phantoslayer21/wronggpu#241 ·
Maintainers usually reply within 1 day
-
bug build
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
phantoslayer21/wronggpu#234 ·
Maintainers usually reply within 1 day
-
bug build
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
phantoslayer21/wronggpu#233 ·
Maintainers usually reply within 1 day
All issues in phantoslayer21/wronggpu
Similar issues
-
ai_p2
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
ClickHouse/ClickHouse#132519 ·
Maintainers usually reply within 1 day
-
[Bug]: VST3 getMidiControllerAssignment reads past midiControllerToParameter for program changeOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
juce-framework/JUCE#1810 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
petercorke/robotics-toolbox-python#952 ·
Maintainers usually reply within 1 day
-
NatronRenderer: a Python error in the script (-t / project script) doesn't change the exit statusOpenfunc:engine type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NatronGitHub/Natron#1276 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day