foclassic icon indicating copy to clipboard operation
foclassic copied to clipboard

Sanitize global variables

Open wipe2238 opened this issue 6 years ago • 0 comments

Currently only one scenario is known (to me), where changing __Variable leads to crash, but there might be more of them. I'd add checks for invalid values on initialization, problem remains if scripts change it later.

  • [ ] __ApRegeneration = 0 (SDK r412)
   EXCEPTION_INT_DIVIDE_BY_ZERO
   FOnlineServer, public: static void __cdecl FOServer::ProcessCritter(class Critter *) + 201

wipe2238 avatar Sep 30 '18 18:09 wipe2238