Shaders: fix DXIL validator UB on null error blobs, unchecked GetStatus, and COM/DLL handle leaks #477

Open
nathanbzrr wants to merge 2 commits from upstream-pr/477 into main
nathanbzrr commented 2026-11-24 03:50:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by nathanbzrr on 2026-11-24T03:50:25Z.


Problem

Validator in crates/victory-shader/src/emit/validator.rs had four COM/FFI soundness and resource management bugs:

  • IDxcOperationResult::GetStatus returned HRESULT was ignored; if GetStatus failed, status remained 0 (S_OK) and validate() falsely returned Ok(()).
  • std::slice::from_raw_parts(ptr(errors), len(errors)) was called without checking !p.is_null() && n > 0, which is UB (and panics in debug builds) when an empty IDxcBlob returns a null buffer pointer.
  • When IDxcValidator::Validate returned hr < 0 with a non-null IDxcOperationResult, result was leaked without Release().
  • LoadLibraryW's HMODULE was leaked on GetProcAddress failure, DxcCreateInstance failure, and Validator::drop(), and the missing-DLL error included the trailing \0 from name.

What changed

  • Stored module: HMODULE on Validator (null for non-DLL/mock instances); stripped the trailing NUL when formatting cannot load ...; called FreeLibrary(module) on GetProcAddress / DxcCreateInstance errors; and in Drop::drop released self.object before calling FreeLibrary(self.module).
  • In Validator::validate: released result when Validate fails (release already null-checks), checked the HRESULT returned by GetStatus, and guarded std::slice::from_raw_parts on !p.is_null() && n > 0.
  • Added one small unit test (emit::validator::tests::null_error_blob_falls_back_without_ub) reusing Blob / BLOB_VTABLE to exercise null/empty error blobs without dxil.dll.

Tests (head 79c27a9)

  • rustfmt --edition 2024 --check crates/victory-shader/src/emit/validator.rs: passed.
  • cargo clippy -p victory-shader --all-targets --locked -- -D warnings: passed.
  • cargo clippy -p victory-shader --all-targets --all-features --locked -- -D warnings: passed.
  • cargo test -p victory-shader --locked -- --test-threads=1: 70 passed, 0 failed, 0 ignored (unit tests, including emit::validator::tests::null_error_blob_falls_back_without_ub and emit::tests::constant_color_validates); 0 doc-tests.
  • cargo xtask policy: asset policy: 151 files ok.

No game files. AI-assisted; reviewed and verified with the tests above.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6574192327 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/477). Originally posted by [nathanbzrr](https://github.com/nathanbzrr) on 2026-11-24T03:50:25Z. --- ## Problem `Validator` in `crates/victory-shader/src/emit/validator.rs` had four COM/FFI soundness and resource management bugs: - `IDxcOperationResult::GetStatus` returned `HRESULT` was ignored; if `GetStatus` failed, `status` remained `0` (`S_OK`) and `validate()` falsely returned `Ok(())`. - `std::slice::from_raw_parts(ptr(errors), len(errors))` was called without checking `!p.is_null() && n > 0`, which is UB (and panics in debug builds) when an empty `IDxcBlob` returns a null buffer pointer. - When `IDxcValidator::Validate` returned `hr < 0` with a non-null `IDxcOperationResult`, `result` was leaked without `Release()`. - `LoadLibraryW`'s `HMODULE` was leaked on `GetProcAddress` failure, `DxcCreateInstance` failure, and `Validator::drop()`, and the missing-DLL error included the trailing `\0` from `name`. ## What changed - Stored `module: HMODULE` on `Validator` (null for non-DLL/mock instances); stripped the trailing NUL when formatting `cannot load ...`; called `FreeLibrary(module)` on `GetProcAddress` / `DxcCreateInstance` errors; and in `Drop::drop` released `self.object` before calling `FreeLibrary(self.module)`. - In `Validator::validate`: released `result` when `Validate` fails (`release` already null-checks), checked the `HRESULT` returned by `GetStatus`, and guarded `std::slice::from_raw_parts` on `!p.is_null() && n > 0`. - Added one small unit test (`emit::validator::tests::null_error_blob_falls_back_without_ub`) reusing `Blob` / `BLOB_VTABLE` to exercise null/empty error blobs without `dxil.dll`. ## Tests (head `79c27a9`) - `rustfmt --edition 2024 --check crates/victory-shader/src/emit/validator.rs`: passed. - `cargo clippy -p victory-shader --all-targets --locked -- -D warnings`: passed. - `cargo clippy -p victory-shader --all-targets --all-features --locked -- -D warnings`: passed. - `cargo test -p victory-shader --locked -- --test-threads=1`: 70 passed, 0 failed, 0 ignored (unit tests, including `emit::validator::tests::null_error_blob_falls_back_without_ub` and `emit::tests::constant_color_validates`); 0 doc-tests. - `cargo xtask policy`: `asset policy: 151 files ok`. No game files. AI-assisted; reviewed and verified with the tests above.
DaviTostes commented 2026-11-24 06:55:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T03:56:02Z.


Verified bd59ba3 on Arch Linux x86_64 (rustc 1.98.1): cargo test -p victory-shader 56 passed, 0 failed, 0 ignored.

Caveat: the validator is Windows-only, so the Linux suite does not exercise the null error blobs, GetStatus or the COM/DLL handle paths this PR changes. Under Wine 11.22 without dxil.dll, the same tests skip validation, so this needs a machine with the validator (VICTORY_DXIL) to be meaningful.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7121554165 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/477#issuecomment-7121554165). Originally posted by [DaviTostes](https://github.com/DaviTostes) on 2026-11-24T03:56:02Z. --- Verified `bd59ba3` on **Arch Linux x86_64** (rustc 1.98.1): `cargo test -p victory-shader` **56 passed, 0 failed, 0 ignored**. Caveat: the validator is Windows-only, so the Linux suite does not exercise the null error blobs, `GetStatus` or the COM/DLL handle paths this PR changes. Under Wine 11.22 without `dxil.dll`, the same tests skip validation, so this needs a machine with the validator (`VICTORY_DXIL`) to be meaningful.
mercuryVM commented 2026-11-24 13:01:21 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T12:28:24Z.

Review: APPROVED


Tested bd59ba3 on Windows 11, RTX 5070, MSVC: cargo test -p victory-shader -- --test-threads=1 73 passed, including the new mock-blob validator tests. cargo clippy -p victory-shader --all-targets is clean. victory translate --validate --pipelines on the local title executable still validates 12 of 12 through the real dxil.dll.

  • Checking GetStatus's HRESULT closes a real false-OK: a failed status call used to leave status == 0 and report the shader valid.
  • from_raw_parts is only called with a non-null pointer and a non-zero length. The result leak on a failed Validate, and the HMODULE leaks on every early return and in Drop, are all closed.
  • FreeLibrary in Drop is reference-counted, so several Validators sharing dxil.dll stay safe.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:review:6039187004 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/477#pullrequestreview-6039187004). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T12:28:24Z. **Review:** APPROVED --- Tested bd59ba3 on Windows 11, RTX 5070, MSVC: `cargo test -p victory-shader -- --test-threads=1` 73 passed, including the new mock-blob validator tests. `cargo clippy -p victory-shader --all-targets` is clean. `victory translate --validate --pipelines` on the local title executable still validates 12 of 12 through the real dxil.dll. - Checking `GetStatus`'s HRESULT closes a real false-OK: a failed status call used to leave `status == 0` and report the shader valid. - `from_raw_parts` is only called with a non-null pointer and a non-zero length. The `result` leak on a failed `Validate`, and the `HMODULE` leaks on every early return and in `Drop`, are all closed. - `FreeLibrary` in `Drop` is reference-counted, so several `Validator`s sharing dxil.dll stay safe. AI-assisted (Claude Code).
catminou4 commented 2026-11-24 13:01:21 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T12:35:43Z.

Review: COMMENTED


Static review only — emit/validator.rs is Windows-only (windows_sys), so nothing here compiles or runs on macOS; the macOS shader suite (96 passed) just proves no unrelated regression.

The hygiene fixes look correct:

  • LoadLibraryW failure message now trims the trailing NUL (name[..name.len() - 1]) instead of leaking it into the error string.
  • GetProcAddress failure now FreeLibrarys the module (previously leaked).
  • DxcCreateInstance failure releases the object and frees the module.
  • Validate failure releases result when non-null; GetStatus HRESULT is now checked and result released on failure.
  • The UB fix: error text is only built when the blob pointer is non-null and length > 0 before from_raw_parts — exactly the null-error-blob crash.
  • release() already null-checks, so the moved release(errors) is safe.
  • Drop releases the COM object before FreeLibrary — correct order, since the object's vtable lives in the DLL.

One question: Validator now stores module: HMODULE unconditionally, but Validator::load/default_path paths that don't load from a DLL (if any) must leave it null — the Drop guard !self.module.is_null() covers that. Please confirm there's no constructor path that forgets to set it.

<!-- greyfinch-sync:Marvisak/VIctory:review:6039286301 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/477#pullrequestreview-6039286301). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T12:35:43Z. **Review:** COMMENTED --- Static review only — `emit/validator.rs` is Windows-only (`windows_sys`), so nothing here compiles or runs on macOS; the macOS shader suite (96 passed) just proves no unrelated regression. The hygiene fixes look correct: - `LoadLibraryW` failure message now trims the trailing NUL (`name[..name.len() - 1]`) instead of leaking it into the error string. - `GetProcAddress` failure now `FreeLibrary`s the module (previously leaked). - `DxcCreateInstance` failure releases the object and frees the module. - `Validate` failure releases `result` when non-null; `GetStatus` HRESULT is now checked and `result` released on failure. - The UB fix: error text is only built when the blob pointer is non-null **and** length > 0 before `from_raw_parts` — exactly the null-error-blob crash. - `release()` already null-checks, so the moved `release(errors)` is safe. - `Drop` releases the COM object before `FreeLibrary` — correct order, since the object's vtable lives in the DLL. One question: `Validator` now stores `module: HMODULE` unconditionally, but `Validator::load`/`default_path` paths that don't load from a DLL (if any) must leave it null — the `Drop` guard `!self.module.is_null()` covers that. Please confirm there's no constructor path that forgets to set it.
nathanbzrr commented 2026-11-24 22:02:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by nathanbzrr on 2026-11-24T21:35:33Z.


Thanks @catminou4 for the review!

Confirming from crates/victory-shader/src/emit/validator.rs:

  • Both Validator::object and Validator::module are private fields on Validator.
  • Validator::load is the sole production constructor: it only constructs Ok(Validator { object, module }) after LoadLibraryW succeeds with a non-null HMODULE and DxcCreateInstance succeeds (freeing module / releasing object on every early error path).
  • The only other Validator { object, module } literals are the three mock tests under #[cfg(test)] mod tests, all of which explicitly set module: std::ptr::null_mut().

Leaving commit bd59ba3 unchanged so Bundle #1511 stays on the verified head.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7145133186 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/477#issuecomment-7145133186). Originally posted by [nathanbzrr](https://github.com/nathanbzrr) on 2026-11-24T21:35:33Z. --- Thanks @catminou4 for the review! Confirming from [`crates/victory-shader/src/emit/validator.rs`](https://github.com/Marvisak/VIctory/blob/bd59ba346da72d106ef47c2c837779ef8d8e5abd/crates/victory-shader/src/emit/validator.rs): - Both `Validator::object` and `Validator::module` are private fields on `Validator`. - `Validator::load` is the sole production constructor: it only constructs `Ok(Validator { object, module })` after `LoadLibraryW` succeeds with a non-null `HMODULE` and `DxcCreateInstance` succeeds (freeing `module` / releasing `object` on every early error path). - The only other `Validator { object, module }` literals are the three mock tests under `#[cfg(test)] mod tests`, all of which explicitly set `module: std::ptr::null_mut()`. Leaving commit `bd59ba3` unchanged so Bundle `#1511` stays on the verified head.
Marvisak commented 2026-11-25 01:07:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:27:31Z.


Automated triage for the maintainers.

Merge candidate. In crates/victory-shader/src/emit/validator.rs:

  • Validator::validate now checks the GetStatus HRESULT;
  • it builds the error slice only from a non-null, non-empty blob;
  • it releases result and errors on every path;
  • Validator::load frees dxil.dll on each early error;
  • Drop releases the object before FreeLibrary;
  • null_error_blob_falls_back_without_ub covers the null and empty blob shapes.

The new head also adds Win32_Foundation to victory-shader's windows-sys features. That is a feature flag of a crate the package already uses, and Cargo.lock is untouched. CI passes.

On your reply: the explicit Win32_Foundation feature is what the earlier note asked for. Nothing else is needed from this review.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148530576 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/477#issuecomment-7148530576). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:27:31Z. --- <!-- victory-triage v1 head=249de665216e46dbcd9c1bc5f285fe8e3d7a572a verdict=merge-candidate at=2026-11-25T03:26:10Z --> Automated triage for the maintainers. **Merge candidate.** In `crates/victory-shader/src/emit/validator.rs`: - `Validator::validate` now checks the `GetStatus` HRESULT; - it builds the error slice only from a non-null, non-empty blob; - it releases `result` and `errors` on every path; - `Validator::load` frees `dxil.dll` on each early error; - `Drop` releases the object before `FreeLibrary`; - `null_error_blob_falls_back_without_ub` covers the null and empty blob shapes. The new head also adds `Win32_Foundation` to victory-shader's `windows-sys` features. That is a feature flag of a crate the package already uses, and `Cargo.lock` is untouched. CI passes. On your reply: the explicit `Win32_Foundation` feature is what the earlier note asked for. Nothing else is needed from this review. --- _Generated by [Claude Code](https://claude.ai/code)_
nathanbzrr commented 2026-11-25 01:08:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by nathanbzrr on 2026-11-25T00:48:48Z.


Trimmed in 79c27a9 (fix/shader-validator-com-soundness — 1 file changed, 123 insertions(+), 13 deletions(-) vs merge base d2a4bae):

  • Removed the redundant if !result.is_null() guard before release(result) in Validator::validate.
  • Removed the system-DLL FreeLibrary probe test (load_errors_strip_nul_and_free_module) and the ~300+ lines of mock COM vtable scaffolding, leaving one small test (emit::validator::tests::null_error_blob_falls_back_without_ub) that reuses Blob / BLOB_VTABLE.

Verified on 79c27a9 (Windows x86_64 MSVC):

  • rustfmt --edition 2024 --check crates/victory-shader/src/emit/validator.rs: passed
  • cargo clippy -p victory-shader --all-targets --locked -- -D warnings: passed
  • cargo clippy -p victory-shader --all-targets --all-features --locked -- -D warnings: passed
  • cargo test -p victory-shader --locked -- --test-threads=1: 70 passed, 0 failed, 0 ignored (0 doc-tests)
  • cargo xtask policy: asset policy: 151 files ok
<!-- greyfinch-sync:Marvisak/VIctory:comment:7148903306 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/477#issuecomment-7148903306). Originally posted by [nathanbzrr](https://github.com/nathanbzrr) on 2026-11-25T00:48:48Z. --- Trimmed in `79c27a9` (`fix/shader-validator-com-soundness` — `1 file changed, 123 insertions(+), 13 deletions(-)` vs merge base `d2a4bae`): - Removed the redundant `if !result.is_null()` guard before `release(result)` in `Validator::validate`. - Removed the system-DLL `FreeLibrary` probe test (`load_errors_strip_nul_and_free_module`) and the ~300+ lines of mock COM vtable scaffolding, leaving one small test (`emit::validator::tests::null_error_blob_falls_back_without_ub`) that reuses `Blob` / `BLOB_VTABLE`. Verified on `79c27a9` (Windows x86_64 MSVC): - `rustfmt --edition 2024 --check crates/victory-shader/src/emit/validator.rs`: passed - `cargo clippy -p victory-shader --all-targets --locked -- -D warnings`: passed - `cargo clippy -p victory-shader --all-targets --all-features --locked -- -D warnings`: passed - `cargo test -p victory-shader --locked -- --test-threads=1`: 70 passed, 0 failed, 0 ignored (0 doc-tests) - `cargo xtask policy`: `asset policy: 151 files ok`
Calvix2k commented 2026-11-25 03:03:31 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-25T02:30:42Z.


Independent verification on Windows 10 19045 (RX 7800 XT host, not relevant to this change):

  • your head 558aa9a + the "skip the GPU suites a device cannot run" patch from #1991 (this machine reports SM 6.5, so the probe suites would otherwise fail for an unrelated reason): 248 passed, 0 failed, 3 ignored for cargo test -p victory-shader --lib.
  • emit::validator::tests::null_error_blob_falls_back_without_ub passes on the unpatched head too (1 passed), and the SDK dxil.dll here is the 1.7 one from 10.0.26100, so the null-blob path is exercised with the same engine your report used.

No objection to the diff from a COM/HRESULT standpoint: GetStatus failure is now an error instead of a silent Ok(()), the slice is built only for a non-null, non-empty blob, and the operation result is released on the error path.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7150817373 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/477#issuecomment-7150817373). Originally posted by [Calvix2k](https://github.com/Calvix2k) on 2026-11-25T02:30:42Z. --- Independent verification on Windows 10 19045 (RX 7800 XT host, not relevant to this change): - your head `558aa9a` + the "skip the GPU suites a device cannot run" patch from #1991 (this machine reports SM 6.5, so the probe suites would otherwise fail for an unrelated reason): **248 passed, 0 failed, 3 ignored** for `cargo test -p victory-shader --lib`. - `emit::validator::tests::null_error_blob_falls_back_without_ub` passes on the unpatched head too (1 passed), and the SDK `dxil.dll` here is the 1.7 one from 10.0.26100, so the null-blob path is exercised with the same engine your report used. No objection to the diff from a COM/HRESULT standpoint: `GetStatus` failure is now an error instead of a silent `Ok(())`, the slice is built only for a non-null, non-empty blob, and the operation result is released on the error path.
nathanbzrr commented 2026-11-25 04:06:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by nathanbzrr on 2026-11-25T03:08:31Z.


Added Win32_Foundation explicitly to windows-sys features in crates/victory-shader/Cargo.toml (head 249de66, without touching Cargo.lock), per the triage note.

Re-verified on 249de66 (Windows MSVC, VICTORY_DXIL SDK 10.0.26100.0):

  • cargo run -p xtask -- policy --staged: asset policy: 1 files ok
  • cargo clippy --workspace --all-targets -- -D warnings & --all-features: clean
  • cargo test -p victory-shader --locked: 248 passed, 0 failed, 3 ignored (including emit::validator::tests::null_error_blob_falls_back_without_ub)
<!-- greyfinch-sync:Marvisak/VIctory:comment:7151629887 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/477#issuecomment-7151629887). Originally posted by [nathanbzrr](https://github.com/nathanbzrr) on 2026-11-25T03:08:31Z. --- Added `Win32_Foundation` explicitly to `windows-sys` features in `crates/victory-shader/Cargo.toml` (head `249de66`, without touching `Cargo.lock`), per the triage note. Re-verified on `249de66` (Windows MSVC, `VICTORY_DXIL` SDK `10.0.26100.0`): - `cargo run -p xtask -- policy --staged`: `asset policy: 1 files ok` - `cargo clippy --workspace --all-targets -- -D warnings` & `--all-features`: clean - `cargo test -p victory-shader --locked`: 248 passed, 0 failed, 3 ignored (including `emit::validator::tests::null_error_blob_falls_back_without_ub`)
fuzeofficlal commented 2026-11-26 02:06:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T01:08:22Z.


Code review and Windows 11 (dxil.dll) verification at head 249de665216e merged cleanly onto main (63bcca43c6a0):

  • COM / DLL lifetime & UB audit (crates/victory-shader/src/emit/validator.rs:156-247):
    • Validator::load releases acquired COM objects and HMODULE on GetProcAddress/DxcCreateInstance failures; Drop releases self.object strictly before calling FreeLibrary(self.module), keeping OS module refcounts balanced across multi-threaded validator creation/drop.
    • validate() checks Validate, result.is_null(), and GetStatus, releases both result and errors on every exit path, and checks !p.is_null() && n > 0 before slice::from_raw_parts, falling back to format!("rejected ({status:#x})") on empty/null error blobs.
  • Verified (Windows 11, dxil.dll 10.0.26100.0, NVIDIA RTX 5090 + WARP, Rust 1.98.1):
    • cargo xtask policy: 191 files ok; cargo clippy --locked -p victory-shader --tests -- -D warnings: 0 warnings
    • validator:: emit::host::: 2/2 passed on both RTX 5090 and WARP (including null_error_blob_falls_back_without_ub); live dxil.dll validation (v_fract_f32_never_returns_one) passed on both RTX 5090 and WARP.

LGTM.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179471792 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/477#issuecomment-7179471792). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T01:08:22Z. --- Code review and Windows 11 (`dxil.dll`) verification at head `249de665216e` merged cleanly onto `main` (`63bcca43c6a0`): - **COM / DLL lifetime & UB audit (`crates/victory-shader/src/emit/validator.rs:156-247`)**: - `Validator::load` releases acquired COM objects and `HMODULE` on `GetProcAddress`/`DxcCreateInstance` failures; `Drop` releases `self.object` strictly *before* calling `FreeLibrary(self.module)`, keeping OS module refcounts balanced across multi-threaded validator creation/drop. - `validate()` checks `Validate`, `result.is_null()`, and `GetStatus`, releases both `result` and `errors` on every exit path, and checks `!p.is_null() && n > 0` before `slice::from_raw_parts`, falling back to `format!("rejected ({status:#x})")` on empty/null error blobs. - **Verified (Windows 11, `dxil.dll` 10.0.26100.0, NVIDIA RTX 5090 + WARP, Rust 1.98.1)**: - `cargo xtask policy`: `191 files ok`; `cargo clippy --locked -p victory-shader --tests -- -D warnings`: 0 warnings - `validator:: emit::host::`: **2/2 passed** on both RTX 5090 and WARP (including `null_error_blob_falls_back_without_ub`); live `dxil.dll` validation (`v_fract_f32_never_returns_one`) passed on both RTX 5090 and WARP. LGTM.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/477:upstream-pr/477'
git switch 'upstream-pr/477'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/477'
git switch 'upstream-pr/477'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/477'
git switch 'upstream-pr/477'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/477'
git switch 'main'
git merge --squash 'upstream-pr/477'
git switch 'main'
git merge --ff-only 'upstream-pr/477'
git switch 'main'
git merge 'upstream-pr/477'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!477
No description provided.