Skip to content

Commit c6997b1

Browse files
author
Tor Didriksen
committed
Bug#36593265 MySQL server heap-buffer-overflow in strlen
When converting a MySQL String to an std::string, use {ptr(), length()} rather than strlen(). Change-Id: Ie59965ecccf9846cf5c18b90b572328263c1cefa
1 parent 770fa15 commit c6997b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/item_strfunc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ class kdf_argument {
422422
*error_generated = true;
423423
return false;
424424
}
425-
kdf_option = kdf_option_value->ptr();
425+
kdf_option = to_string(*kdf_option_value);
426426
return true;
427427
}
428428

0 commit comments

Comments
 (0)