mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-02-26 12:51:47 -03:00
The Discord URL patch was writing 28 bytes (.gg/MHkEjepMQ7, 14 chars) where only 20 bytes existed (.gg/hytale, 10 chars), corrupting 8 bytes of adjacent data in the binary. Changes: - Use same-length Discord URL: .gg/santop (10 chars) - Add length check to UTF-16LE fallback path - Add length check and zero-fill to findAndReplaceDomainSmart This buffer overflow explains why the crash happened on some systems (Steam Deck, Ubuntu LTS) but not others - depending on what data was adjacent to the patched string. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>