• Alexander Barkov's avatar
    Bug#43827 Server closes connections and restarts · 00792d37
    Alexander Barkov authored
    Problem:
      Crash happened with a user-defined utf8 collation,
      on attempt to insert a value longer than the column
      to store.
    Reason:
      The "ctype" member was not initialized (NULL) when
      allocating a user-defined utf8 collation, so an attempt
      to call my_ctype(cs, *str) to check if we loose any important
      data when truncating the value made the server crash.
    Fix:
      Initializing tge "ctype" member to a proper value.
    
    
    mysql-test/r/ctype_ldml.result
      Adding tests
    
    mysql-test/t/ctype_ldml.test
      Adding tests
    
    strings/ctype-uca.c
      Adding initialization of "ctype" member.
    
    modified:
      mysql-test/r/ctype_ldml.result
      mysql-test/t/ctype_ldml.test
      strings/ctype-uca.c
    00792d37
ctype-uca.c 452 KB