Commit 4c5e1f1
committed
BUG#36421684: mysql server 8.3.0 heap-buffer-overflow at Multisource_info::get_mi
When using JSON fuctions as a parameter to a
SOURCE_POS_WAIT/MASTER_POS_WAIT, something that should also apply to
other functions that return text results, the string extracted from
the parameter did not have a safe pointer to it.
The cause is that the length of the string was not properly marked
inside its allocated space.
Usage of the method c_ptr_safe fixes this issue.
Change-Id: Ic2c54999293aa2e0833594754ad681d7453e03a11 parent c9b6926 commit 4c5e1f1
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
4912 | 4912 | | |
4913 | 4913 | | |
4914 | 4914 | | |
4915 | | - | |
| 4915 | + | |
4916 | 4916 | | |
4917 | 4917 | | |
4918 | 4918 | | |
| |||
0 commit comments