RynthCore/tools/LargeAddressAlignmentTests/LargeAddressAlignmentTests.csproj
BlankenshipG 9814b65ac5 fix(compat): pad AC unpack buffers correctly above 2 GB (2026.10.5.23)
AC pads its pack/unpack cursor to 4 bytes with a signed "ptr % 4". In the large-address-aware
client a buffer above 0x80000000 gives a negative remainder, AC pads 4 bytes too many, zeroes
live data and parses garbage counts: kelpie's open-world crashes in motion-table and setup
unpacks (dump 2026-10-10 10:32, motion table 0x09000009 at 0x80438034).

Early init now rewrites the 190 padding sites (and r, 0x80000003 followed by the sign fix-up and
the "already aligned" je) to and r, 3 in memory. Kill-switch: engine.json
EnableLargeAddressAlignmentFix=false. Offline checks in tools/LargeAddressAlignmentTests.

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit fdc7ea71bc)
2026-10-10 11:44:24 -04:00

25 lines
1.1 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<!--
Offline checks for the large-address alignment fix
(src\RynthCore.Engine\Compatibility\LargeAddressAlignmentScan.cs, compiled in): the site scan
against the .text of a real acclient.exe read from disk, idempotence once patched, refusal of
near-miss byte patterns, and the padding arithmetic above and below 2 GB. Nothing native: no
AC process, no engine state.
Run: dotnet run -c Release (exit 0 = pass, 1 = fail); after the usual separator, an AC folder or an acclient.exe.
Default: C:\Turbine\Asheron's Call-ryn\acclient.exe.
-->
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>true</InvariantGlobalization>
<RootNamespace>LargeAddressAlignmentTests</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\RynthCore.Engine\Compatibility\LargeAddressAlignmentScan.cs" Link="Engine\LargeAddressAlignmentScan.cs" />
</ItemGroup>
</Project>