• Kristofer Pettersson's avatar
    Bug#38469 invalid memory read and/or crash with utf8 text field, stored procedure, uservar · 18b3eacb
    Kristofer Pettersson authored
                
    A stored procedure involving substrings could crash the server on certain
    platforms because of invalid memory reads.
              
    During storing the new blob-field value, the cached value's address range
    overlapped that of the new field value. This caused problems when the 
    cached value storage was reallocated to provide access for a new 
    characater set representation. The patch checks the address ranges, and if
    they overlap, the new field value is copied to a new storage before it is
    converted to the new character set.
    18b3eacb
sp.test 164 KB