Prepare fixtures

This commit is contained in:
dkanus 2026-07-14 20:27:09 +07:00
commit 9c94356263
6021 changed files with 722805 additions and 22 deletions

View file

@ -0,0 +1,47 @@
/**
* Mutator for testing certain bug that leads to crashes.
*/
class KFCrashMut extends Mutator;
struct SubStruct
{
var string key;
var int value;
};
struct SomeStruct
{
var array<SubStruct> records;
};
function SomeStruct ModStruct(SomeStruct s)
{
return s;
}
function Mutate(string command, PlayerController sendingPlayer)
{
local int i;
local SomeStruct s;
if (command != "crash") return;
// This doesn't crash server:
ModStruct(s);
ModStruct(s);
Log("Told you it doesn't!");
// This does:
for (i = 0; i < 2; i += 1)
{
ModStruct(s);
// This also wouldn't lead to crash:
// s = ModStruct(s);
}
Log("I tried!");
}
defaultproperties
{
// Mutator description
GroupName = "Crash mutator"
FriendlyName = "Crash mutator"
Description = "Mutator to make your shjit crash"
}

View file

@ -0,0 +1,7 @@
<html>
<head><title>Index of /kf_sources/KFCrashTest/Classes/</title></head>
<body>
<h1>Index of /kf_sources/KFCrashTest/Classes/</h1><hr><pre><a href="../">../</a>
<a href="KFCrashMut.uc">KFCrashMut.uc</a> 04-Apr-2020 16:24 957
</pre><hr></body>
</html>

View file

@ -0,0 +1,7 @@
<html>
<head><title>Index of /kf_sources/KFCrashTest/</title></head>
<body>
<h1>Index of /kf_sources/KFCrashTest/</h1><hr><pre><a href="../">../</a>
<a href="Classes/">Classes/</a> 29-Jun-2025 19:43 -
</pre><hr></body>
</html>