mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#44358 valgrind errors with decode() function
The warning happens because string argument is not zero ended. The fix is to add new parameter 'length' to SQL_CRYPT() and use ptr() instead of c_ptr().
This commit is contained in:
@ -25,7 +25,7 @@ class SQL_CRYPT :public Sql_alloc
|
||||
uint shift;
|
||||
void crypt_init(ulong *seed);
|
||||
public:
|
||||
SQL_CRYPT(const char *seed);
|
||||
SQL_CRYPT(const char *seed, uint length);
|
||||
SQL_CRYPT(ulong *seed)
|
||||
{
|
||||
crypt_init(seed);
|
||||
|
Reference in New Issue
Block a user