Details
-
Bug
-
Status: Open (View Workflow)
-
Trivial
-
Resolution: Unresolved
-
10.11, 13.1
-
None
-
Unexpected results
Description
--source include/have_debug.inc
|
SET @saved_dbug= @@GLOBAL.debug_dbug; |
SET @@GLOBAL.debug_dbug= 'd,A\0C'; |
SELECT @@GLOBAL.debug_dbug , #=> Expected: d,A␀C. Actual: d,A |
LENGTHB(@@GLOBAL.debug_dbug); #=> Expected: 5. Actual: 3 |
SET @@GLOBAL.debug_dbug= @saved_dbug; |
|
|
--source include/have_debug_sync.inc
|
SET @@SESSION.debug_sync= 'now SIGNAL A\0C'; |
SELECT @@SESSION.debug_sync , #=> Expected: … A␀C. Actual: … A |
LENGTHB(@@SESSION.debug_sync); #=> Expected: 27. Actual: 24
|
SET @@SESSION.debug_sync= RESET; |
This is very reminiscent of MDEV-40271; though unlike @@default_master_connection, @@debug_dbug and @@debug_sync are set up in the C/C++ code with null-terminated string names, so these variables should not accept null bytes at all.
I have not determined whether they will read uninitialized buffer regions, as in MDEV-40271.
Attachments
Issue Links
- split from
-
MDEV-40271 @@default_master_connection is corrupted if set to a string with null bytes
-
- Needs Feedback
-