diff --git a/Classic/scripts/autoexec/AntiLouExploitFixes.cs b/Classic/scripts/autoexec/AntiLouExploitFixes.cs index 17960f1..9191ba0 100644 --- a/Classic/scripts/autoexec/AntiLouExploitFixes.cs +++ b/Classic/scripts/autoexec/AntiLouExploitFixes.cs @@ -367,6 +367,13 @@ function DeactivatePackage(%this) parent::DeactivatePackage(%this); } +// Prevents clients from being vulnerable to crashing via NULL voice exploit +function alxGetWaveLen(%wavFile) { + if ( strstr( %wavFile , ".wav" ) == -1 ) return $MaxMessageWavLength + 1; + echo("Length check: " @ %wavFile); + parent::alxGetWaveLen(%wavFile); +} + };