• Georgi Kodinov's avatar
    Bug #38701: Crash in String::append when inserting duplicate empty strings an uft8 · e953a26d
    Georgi Kodinov authored
    SET col
                      
    When reporting a duplicate key error the server was making incorrect assumptions 
    on what the state of the value string to include in the error is.
    
    Fixed by accessing the data in this string in a "safe" way (without relying on it
    having a terminating 0).
          
    Detected by code analysis and fixed a similar problem in reporting the foreign key
    duplicate errors.
    e953a26d
handler.cc 134 KB