Compare commits

...
Author SHA1 Message Date
poli0981andClaude Opus 5.5 e15bc6edb8 fix: an Xbox game's picture name that names a file's stream is passed over, not thrown on; the guard's note on GuardedInjectImpl sits above it again (beta.34 PR-1)
Two things a self-review of #351 and #352 found after their gates were green.

- XboxArtCache.Image: a ShellVisuals name in MicrosoftGame.config that points at a
  stream of a file, named like a drive ("Resources\a:b.png"), made the scale
  search's pattern "a:b.scale-*.png", and EnumerateFiles throws ArgumentException
  on a rooted pattern ("Second path fragment must not be a drive or UNC name") -
  which XboxArtCache.Find does not catch. GameArt.ForAsync's task then faulted:
  the game page showed no picture and logged an unobserved task, and a command
  that awaits the page's reload would reach the dispatcher's crash report. A name
  whose leaf holds ':' is now no picture, like a name outside the package. Red
  without the fix (the exact ArgumentException), green with it; no install of
  the owner's eleven titles has such a name (spike-notes §25).
- fl_guard.cpp: #352 put BlockingMitigation and TargetIsolationVerdict between
  GuardedInjectImpl and the comment that describes it ("A refusal returns here
  ... runs only for a target the full evaluation allowed"), so it read as the
  first line of BlockingMitigation's. It moves back above GuardedInjectImpl and
  names the target's isolation among what runs after the evaluation. No code
  change there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:41:21 +07:00
4 changed files with 29 additions and 3 deletions

No files matched your search

+16
View File
@@ -35,6 +35,22 @@ numeric core and does not move; the heading is the full version — corrected 20
## [Unreleased]
### Changed
- **The guard's source reads in order again** (developers only; no behaviour changes): the note that says what runs only
for a target the anti-cheat evaluation allowed sits above the function it describes again — beta.33's two isolation
checks had come between them — and names that isolation check among what runs
(`src/native/FrameLedger.Injector/src/fl_guard.cpp`).
### Fixed
- **An Xbox game's page no longer fails on a strange picture name** in the game's own `MicrosoftGame.config` (beta.33's):
a name that points at a stream of a file (`a:b.png`) made the search for its scaled variants throw — the page then
showed no picture and logged an error, and an action on the page that reloads it could end in the crash report. Such a
name is no picture a package ships, so it is passed over like a name outside the package
(`src/FrameLedger.Infrastructure/Art/XboxArtCache.cs`). Found by a self-review of #351 and #352 after their gates
passed; no install of the owner's eleven titles has such a name.
## Releases
Newest first. Each file holds that release's section exactly as it stood here.
@@ -67,6 +67,13 @@ public sealed class XboxArtCache : IStoreArtCache
return null; // a name that escapes the package is not the package's picture
}
if (Path.GetFileName(full).Contains(':', StringComparison.Ordinal))
{
// A file's stream (name:stream) is no picture a package ships, and the scale search below would throw on one
// named like a drive ("a:b.png" makes the pattern "a:b.scale-*.png", which EnumerateFiles refuses; beta.34).
return null;
}
var plain = new FileInfo(full);
if (plain.Exists && plain.Length > 0)
{
@@ -718,9 +718,6 @@ Verdict EvaluateImpl(std::uint32_t targetPid, const Sources& sources, const char
return Allow();
}
// A refusal returns here, and there is no argument that changes that (the `acknowledged` flag of 2026-09-21 was
// withdrawn on 2026-09-22 with the bypass it served). Everything below -- the payload's existence, the payload's
// identity, the primitive, the bitness answer -- runs only for a target the full evaluation allowed.
// beta.33 (D78) -- the first policy in `facts` the Overlay cannot live under, named for the refusal's signal; null
// when there is none. Which one names a refusal changes nothing a user can do, so the order is just winnt.h's.
const char* BlockingMitigation(const TargetIsolation& facts) noexcept {
@@ -765,6 +762,10 @@ Verdict TargetIsolationVerdict(std::uint32_t targetPid, const Sources& sources)
return Allow();
}
// A refusal returns here, and there is no argument that changes that (the `acknowledged` flag of 2026-09-21 was
// withdrawn on 2026-09-22 with the bypass it served). Everything below -- the payload's existence, the payload's
// identity, the target's isolation, the primitive, the bitness answer -- runs only for a target the full evaluation
// allowed.
Verdict GuardedInjectImpl(std::uint32_t targetPid, const wchar_t* dllPath, const Sources& sources,
const char* toleratedFamilies) noexcept {
const Verdict v = EvaluateImpl(targetPid, sources, toleratedFamilies);
@@ -159,6 +159,8 @@ public sealed class XboxLibrarySourceTests : IDisposable
files.Cover.Should().BeNull("a GDK package ships no portrait cover");
XboxArtCache.Image(content, @"..\..\outside.png").Should().BeNull("a name that escapes the package is not the package's picture");
XboxArtCache.Image(content, @"C:\Windows\System32\shell32.dll").Should().BeNull();
XboxArtCache.Image(content, @"Resources\a:b.png").Should().BeNull("a file's stream is not a picture, and its scale search threw (beta.34)");
XboxArtCache.Image(content, @"Resources\Square480x480Logo.png:Zone.Identifier").Should().BeNull();
}
/// <summary>