CLI: inspect names every DLL characteristics bit #1988

Manually merged
github merged 1 commit from gh-pr/1988/head into gh-pr/1988/base 2026-11-26 04:50:48 +00:00
Owner

@⁠wilu222 on GitHub · 2026-11-25 02:26 UTC · original
wilu222:inspect-dll-flags → main · +45 −2 · 2 files · 1 commits · merged 2026-11-25 21:52 UTC

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.
**@⁠wilu222** on GitHub · 2026-11-25 02:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/1988) `wilu222:inspect-dll-flags` → `main` · +45 −2 · 2 files · 1 commits · merged 2026-11-25 21:52 UTC `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.
`victory inspect` named six of the optional header's DllCharacteristics
bits and dropped the rest without a trace. The title executable of
Series 1.0.2.1 carries 0x8160, so its line read
"0x8160 (high-entropy-va, dynamic-base, nx)": the terminal-server-aware
bit (0x8000) was missing from the names while present in the number.

Name the remaining documented bits (no-isolation, no-seh, no-bind,
wdm-driver, terminal-server-aware) and show any bit still without a name
(the reserved ones) in hex instead of dropping it. The new constants sit
with the others in victory-pe's layout::dll_flags.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:50:47 +00:00
github manually merged commit b157c07793 into gh-pr/1988/base 2026-11-26 04:50:48 +00:00
Author
Owner

@⁠DesertGamer on GitHub · 2026-11-25 02:28 UTC · original

  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.

**@⁠DesertGamer** on GitHub · 2026-11-25 02:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/1988#issuecomment-7150765172) 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.*
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 08:26 UTC · original

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

**@⁠Marvisak** on GitHub · 2026-11-25 08:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/1988#issuecomment-7157020243) <!-- 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)_
Author
Owner

@⁠cloph-dsp on GitHub · 2026-11-25 12:07 UTC · original

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.

**@⁠cloph-dsp** on GitHub · 2026-11-25 12:07 UTC · [original](https://github.com/Marvisak/VIctory/pull/1988#issuecomment-7161945757) 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.
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1988
No description provided.