mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 13:22:48 +01:00
Scripts/Commands: Add .debug asan commands
Add ".debug asan memoryleak" and ".debug asan outofbounds" commands to trigger Address Sanitizer warnings at runtime (or other dynamic analysis tools)
This commit is contained in:
3
sql/updates/auth/3.3.5/2019_04_27_00_auth.sql
Normal file
3
sql/updates/auth/3.3.5/2019_04_27_00_auth.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
--
|
||||
DELETE FROM `rbac_permissions` WHERE `id`= 874;
|
||||
INSERT INTO `rbac_permissions` (`id`,`name`) VALUES (874, 'Command: debug asan');
|
||||
18
sql/updates/world/3.3.5/2019_04_27_00_world.sql
Normal file
18
sql/updates/world/3.3.5/2019_04_27_00_world.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
--
|
||||
DELETE FROM `command` WHERE `name`='debug asan';
|
||||
INSERT INTO `command` (`name`,`permission`,`help`) VALUES
|
||||
('debug asan',874,'Syntax: .debug asan $subcommand
|
||||
Type .debug asan to see the list of possible subcommands or .help debug asan $subcommand to see info on subcommands.
|
||||
Use only when testing dynamic analysis tools.');
|
||||
|
||||
DELETE FROM `command` WHERE `name`='debug asan outofbounds';
|
||||
INSERT INTO `command` (`name`,`permission`,`help`) VALUES
|
||||
('debug asan outofbounds',874,'Syntax: .debug asan outofbounds
|
||||
Triggers a stack out of bounds read.
|
||||
Use only when testing dynamic analysis tools.');
|
||||
|
||||
DELETE FROM `command` WHERE `name`='debug asan memoryleak';
|
||||
INSERT INTO `command` (`name`,`permission`,`help`) VALUES
|
||||
('debug asan memoryleak',874,'Syntax: .debug asan memoryleak
|
||||
Triggers a memory leak.
|
||||
Use only when testing dynamic analysis tools.');
|
||||
Reference in New Issue
Block a user