Launcher: install, repair and update can delete or overwrite a file replaced after the backup

オープン
#185 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
desktop

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

area: launcher bug

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.

主要言語
C++
スター
12
フォーク
2
平均マージ
3時間 10分
マージ済み PR(30日)
171

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

phantoslayer21/wronggpu のほかの issue

phantoslayer21/wronggpu の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。