• Sreeharsha Ramanavarapu's avatar
    Bug #22123583: MYSQL 5.5: MAIN.SP HAS VALGRIND ISSUES · 75bfdea4
    Sreeharsha Ramanavarapu authored
    Issue:
    -----
    When a varchar column is used to fill the record in an
    internal temporary table, the length of the string stored
    in the column is not taken into account. Instead the
    default length of packed data is used to copy with memmove.
    This will cause valgrind issues since some bytes are
    uninitialized.
    
    SOLUTION:
    ---------
    The solution is to take into account the length of the
    string stored in the column while filling the record.
    
    This fix is a backport of BUG#13389854.
    75bfdea4
field.h 85.2 KB