aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2020-08-17 22:25:11 +0200
committerTreeston <treeston.mmoc@gmail.com>2020-08-17 22:25:11 +0200
commite18f7aaa4d1bc9f6ad4b524c25fd3f111493b774 (patch)
tree8fbadd8e1b7d66372bf8c9230c204cf593647895 /src
parent426513ec8e154df7c13ba98371513dd9f6d2cb9d (diff)
Scripts/Commands: Remove .debug asan outofbounds, because having reachable code that essentially says __builtin_unreachable in the core is making me twitchy.
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Commands/cs_debug.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp
index eab6cc6993d..1d979ee081c 100644
--- a/src/server/scripts/Commands/cs_debug.cpp
+++ b/src/server/scripts/Commands/cs_debug.cpp
@@ -81,7 +81,6 @@ public:
static std::vector<ChatCommand> debugAsanCommandTable =
{
{ "memoryleak", rbac::RBAC_PERM_COMMAND_DEBUG_ASAN, true, &HandleDebugMemoryLeak, "" },
- { "outofbounds", rbac::RBAC_PERM_COMMAND_DEBUG_ASAN, true, &HandleDebugOutOfBounds, "" },
};
static std::vector<ChatCommand> debugCommandTable =
{
@@ -1900,15 +1899,6 @@ public:
return true;
}
- static bool HandleDebugOutOfBounds(ChatHandler* handler, CommandArgs* /*args*/)
- {
- uint8 stack_array[10] = {};
- int size = 10;
-
- handler->PSendSysMessage("Triggered an array out of bounds read at address %p, value %u", stack_array + size, stack_array[size]);
- return true;
- }
-
static bool HandleDebugMemoryLeak(ChatHandler* handler, CommandArgs* /*args*/)
{
uint8* leak = new uint8();