• Kristian Nielsen's avatar
    Fix buffer overflow in COM_FIELD_LIST. · c805d9bc
    Kristian Nielsen authored
    sql/sql_base.cc:
      Replace strmov() with strnmov() to remove the possibility for buffer overflow.
    sql/sql_parse.cc:
      Reject COM_FIELD_LIST with too-big table or wildcard argument.
      (libmysqlclient doesn't allow sending too long arguments anyway, but we
      need this to protect against buffer overflow exploits).
    c805d9bc
sql_base.cc 291 KB