SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,18 @@
Fix invalid memory issues.
From upstream 9a924cea028f17d3be3499f1530abc14d9071983.
Index: gwlua/functions.c
--- gwlua/functions.c.orig
+++ gwlua/functions.c
@@ -148,6 +148,11 @@ static int l_playsound( lua_State* L )
break;
}
}
+
+ if ( channel == -1 )
+ {
+ return 0;
+ }
}
else if ( channels[ channel ] != -1 )
{