• unknown's avatar
    [PATCH] BUG#27404 util thd mysql_parse sig11 when mysqld default multibyte charset · 60f3384c
    unknown authored
    NDB util thread calls mysql_parse internally with plain old c strings (7bit ascii) to create tables (e.g. mysql.ndb_schema). With mysqld default charset set to a multibyte one (e.g. ucs2) mysql_parse would try to interpret the 7bit string as UCS2 and promptly explode in a heap.
    
    Solution is to set the util thread to be using utf8 charset.
    
    Index: ndb-work/sql/ha_ndbcluster.cc
    ===================================================================
    
    
    sql/ha_ndbcluster.cc:
      BUG#27404 util thd mysql_parse sig11 when mysqld default multibyte charset
    60f3384c
ha_ndbcluster.cc 293 KB