From 2113c15f9aede43e56b989ab17ac5551870bbaca Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Mon, 17 Aug 2020 19:04:43 -0400 Subject: [PATCH] NULL voice fix --- Classic/scripts/autoexec/AntiLouExploitFixes.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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); +} + };