mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-02-26 09:21:48 -03:00
When replacing domain strings with shorter ones, the replaceBytes function was only copying the new bytes without clearing the leftover bytes from the old pattern. This caused "free(): invalid pointer" crashes on Steam Deck and Ubuntu due to corrupted string metadata in the .NET AOT binary. Fix: Fill the entire old pattern region with 0x00 before writing the new bytes. This ensures no leftover data remains that could corrupt the binary structure. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>