diff options
| author | jackpoz <giacomopoz@gmail.com> | 2019-04-27 18:39:06 +0200 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2019-04-27 20:11:48 +0200 |
| commit | 71d15ea25be3e86646faaa3266617a0b8177972f (patch) | |
| tree | 3f002c168984609eae62c0287b535984ec1fff31 /sql/updates | |
| parent | 0d1ff7446dce7b0641f49ac55a008669838612cd (diff) | |
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)
Diffstat (limited to 'sql/updates')
| -rw-r--r-- | sql/updates/auth/3.3.5/2019_04_27_00_auth.sql | 3 | ||||
| -rw-r--r-- | sql/updates/world/3.3.5/2019_04_27_00_world.sql | 18 |
2 files changed, 21 insertions, 0 deletions
diff --git a/sql/updates/auth/3.3.5/2019_04_27_00_auth.sql b/sql/updates/auth/3.3.5/2019_04_27_00_auth.sql new file mode 100644 index 00000000000..d8f01cc9db3 --- /dev/null +++ b/sql/updates/auth/3.3.5/2019_04_27_00_auth.sql @@ -0,0 +1,3 @@ +-- +DELETE FROM `rbac_permissions` WHERE `id`= 874; +INSERT INTO `rbac_permissions` (`id`,`name`) VALUES (874, 'Command: debug asan'); diff --git a/sql/updates/world/3.3.5/2019_04_27_00_world.sql b/sql/updates/world/3.3.5/2019_04_27_00_world.sql new file mode 100644 index 00000000000..87f7cacf4dd --- /dev/null +++ b/sql/updates/world/3.3.5/2019_04_27_00_world.sql @@ -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.'); |
