• Sergey Glukhov's avatar
    Bug#44358 valgrind errors with decode() function · 5f9e40a5
    Sergey Glukhov authored
    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().
    
    
    mysql-test/r/func_str.result:
      test result
    mysql-test/t/func_str.test:
      test case
    sql/item_strfunc.cc:
      Added new parameter 'length' to SQL_CRYPT
    sql/sql_crypt.cc:
      Added new parameter 'length' to SQL_CRYPT
    sql/sql_crypt.h:
      Added new parameter 'length' to SQL_CRYPT
    5f9e40a5
func_str.result 93.8 KB