CLI: inspect names every DLL characteristics bit #1986

Merged
wilu222 merged 1 commit from upstream-pr/1988 into main 2026-11-25 21:52:51 +00:00
wilu222 commented 2026-11-25 02:26:04 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by wilu222 on 2026-11-25T02:26:04Z.


victory inspect named six of the optional header's DllCharacteristics bits and silently dropped the rest. The title executable of Series 1.0.2.1 carries 0x8160, so its line read 0x8160 (high-entropy-va, dynamic-base, nx): the number had the terminal-server-aware bit (0x8000), the names did not.

This names the remaining documented bits (no-isolation, no-seh, no-bind, wdm-driver, terminal-server-aware) and shows any bit still without a name (the reserved ones) in hex instead of dropping it.

What is in it

  • crates/victory-pe/src/layout.rs: the five missing dll_flags constants, next to the existing ones.
  • apps/victory/src/inspect.rs: dll_flags names them and appends unnamed bits as hex; two unit tests (no game data).

Tested

  • NVIDIA GeForce RTX 5070 (driver 32.0.16.1742), AMD Ryzen 7 5700X, 32 GB, Windows 10 Home 22H2 (19045), Rust 1.98.1 (pinned), on main 940d32f.
  • The two new tests fail on main (left: " (high-entropy-va, dynamic-base, nx)") and pass with the change.
  • cargo clippy --workspace --all-targets --locked -- -D warnings and the --all-features variant: clean.
  • cargo xtask policy --staged: 2 files ok.
  • cargo test --workspace --locked --no-fail-fast: 625 passed, 78 failed, 10 ignored. main on the same machine: 623 passed, 78 failed, 10 ignored, the same 78 tests. They are the GPU shader tests that need shader model 6.6, which Windows 10's inbox D3D12 does not expose (neither hardware nor WARP SM 6.6 device available / no SM 6.6 device; #84). 90 tests print a skip for the same reason.
  • victory inspect on the title executable now prints dll flags 0x8160 (high-entropy-va, dynamic-base, nx, terminal-server-aware); its DLLs (0x0160, 0x4160) print as before.

Not tested

  • The GPU tests that need shader model 6.6 (Windows 10 here); the change does not touch them.
  • Windows 11, AMD GPUs.
<!-- greyfinch-sync:Marvisak/VIctory:issue:6595751896 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1988). Originally posted by [wilu222](https://github.com/wilu222) on 2026-11-25T02:26:04Z. --- `victory inspect` named six of the optional header's DllCharacteristics bits and silently dropped the rest. The title executable of Series 1.0.2.1 carries `0x8160`, so its line read `0x8160 (high-entropy-va, dynamic-base, nx)`: the number had the terminal-server-aware bit (`0x8000`), the names did not. This names the remaining documented bits (no-isolation, no-seh, no-bind, wdm-driver, terminal-server-aware) and shows any bit still without a name (the reserved ones) in hex instead of dropping it. **What is in it** - `crates/victory-pe/src/layout.rs`: the five missing `dll_flags` constants, next to the existing ones. - `apps/victory/src/inspect.rs`: `dll_flags` names them and appends unnamed bits as hex; two unit tests (no game data). **Tested** - NVIDIA GeForce RTX 5070 (driver 32.0.16.1742), AMD Ryzen 7 5700X, 32 GB, Windows 10 Home 22H2 (19045), Rust 1.98.1 (pinned), on `main` `940d32f`. - The two new tests fail on `main` (`left: " (high-entropy-va, dynamic-base, nx)"`) and pass with the change. - `cargo clippy --workspace --all-targets --locked -- -D warnings` and the `--all-features` variant: clean. - `cargo xtask policy --staged`: 2 files ok. - `cargo test --workspace --locked --no-fail-fast`: 625 passed, 78 failed, 10 ignored. `main` on the same machine: 623 passed, 78 failed, 10 ignored, the same 78 tests. They are the GPU shader tests that need shader model 6.6, which Windows 10's inbox D3D12 does not expose (`neither hardware nor WARP SM 6.6 device available` / `no SM 6.6 device`; #84). 90 tests print a skip for the same reason. - `victory inspect` on the title executable now prints `dll flags 0x8160 (high-entropy-va, dynamic-base, nx, terminal-server-aware)`; its DLLs (`0x0160`, `0x4160`) print as before. **Not tested** - The GPU tests that need shader model 6.6 (Windows 10 here); the change does not touch them. - Windows 11, AMD GPUs.
catminou4 commented 2026-11-25 03:03:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T02:48:49Z.

Review: COMMENTED


Static review only: apps/CLI are Windows-only paths — nothing compiles or runs on macOS; source review of the diff.

CLI inspect names every DLL characteristics bit — completeness fix for the PE inspect output; small.

<!-- greyfinch-sync:Marvisak/VIctory:review:6051088849 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1988#pullrequestreview-6051088849). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T02:48:49Z. **Review:** COMMENTED --- Static review only: apps/CLI are Windows-only paths — nothing compiles or runs on macOS; source review of the diff. CLI inspect names every DLL characteristics bit — completeness fix for the PE inspect output; small.
DesertGamer commented 2026-11-25 03:03:30 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DesertGamer on 2026-11-25T02:28:16Z.


  1. VIctory V2: community PRs, merged and tested

Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.

Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).

⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.

Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2

Unofficial community fork of Marvisak/VIctory, GPL-3.0.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7150765172 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1988#issuecomment-7150765172). Originally posted by [DesertGamer](https://github.com/DesertGamer) on 2026-11-25T02:28:16Z. --- 1. ### VIctory V2: community PRs, merged and tested Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. **Where it stands today:** launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). :warning: Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk. Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: https://DesertGamer/VIctory-V2 *Unofficial community fork of Marvisak/VIctory, GPL-3.0.*
Marvisak commented 2026-11-25 09:06:16 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T08:26:05Z.


Automated triage for the maintainers.

Merge candidate.

This is a small fix to victory inspect. On main, dll_flags in apps/victory/src/inspect.rs names only six DllCharacteristics bits and silently drops the rest. The PR adds the five missing documented PE bits to victory-pe's layout::dll_flags and prints any remaining unnamed bits in hex. I checked the constants against the public PE format spec: 0x0200, 0x0400, 0x0800, 0x2000 and 0x8000 are all correct. I also worked through the two new tests' expected strings, including the leftover-bits fold and {:#06x} formatting, and they match. CI (check) passes.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7157020243 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1988#issuecomment-7157020243). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T08:26:05Z. --- <!-- victory-triage v1 head=b157c077930a2e3de51d59c8fbc3f1854b45065d verdict=merge-candidate at=2026-11-25T08:25:59Z --> Automated triage for the maintainers. **Merge candidate.** This is a small fix to `victory inspect`. On `main`, `dll_flags` in `apps/victory/src/inspect.rs` names only six DllCharacteristics bits and silently drops the rest. The PR adds the five missing documented PE bits to `victory-pe`'s `layout::dll_flags` and prints any remaining unnamed bits in hex. I checked the constants against the public PE format spec: 0x0200, 0x0400, 0x0800, 0x2000 and 0x8000 are all correct. I also worked through the two new tests' expected strings, including the leftover-bits fold and `{:#06x}` formatting, and they match. CI (`check`) passes. --- _Generated by [Claude Code](https://claude.ai/code)_
cloph-dsp commented 2026-11-25 13:02:41 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T12:07:16Z.


Independent local validation (Windows, Rust 1.100.0/MSVC, head b157c07, no game data): cargo test --locked -p victory --bins -> 12 tests passed, including dll_flags_names_every_bit_the_title_sets and dll_flags_shows_bits_without_a_name, exit 0. Real Windows system DLL check (no game data): cargo run --locked -q -p victory -- inspect C:\Windows\System32\kernel32.dll --imports exited 0 and printed dll flags 0x4160 (high-entropy-va, dynamic-base, nx, cfg), file size 862016, blake3, PDB, sections and 1276 imports from 104 DLLs. The 44 stderr lines are pre-existing fetch_update deprecation warnings, not from this change. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU/CLI). No game data, assets or extracted content used.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7161945757 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1988#issuecomment-7161945757). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-25T12:07:16Z. --- Independent local validation (Windows, Rust 1.100.0/MSVC, head b157c07, no game data): `cargo test --locked -p victory --bins` -> 12 tests passed, including `dll_flags_names_every_bit_the_title_sets` and `dll_flags_shows_bits_without_a_name`, exit 0. Real Windows system DLL check (no game data): `cargo run --locked -q -p victory -- inspect C:\Windows\System32\kernel32.dll --imports` exited 0 and printed `dll flags 0x4160 (high-entropy-va, dynamic-base, nx, cfg)`, file size 862016, blake3, PDB, sections and 1276 imports from 104 DLLs. The 44 stderr lines are pre-existing `fetch_update` deprecation warnings, not from this change. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU/CLI). No game data, assets or extracted content used.
upstream-sync closed this pull request 2026-11-25 22:03:18 +00:00
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!1986
No description provided.