~drizzle-trunk/drizzle/development

Viewing all changes in revision 814.1.1.

  • Committer: Jay Pipes
  • Date: 2009-01-28 09:42:18 UTC
  • mto: (779.3.22 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: jpipes@serialcoder-20090128094218-iimpyyshew2mx7nq
Fix for Bug 314502 "show create table crashes with multi-byte character in enum description"

In append_unescaped, there was an incorrect continue in the multi-byte
length calculation piece, which resulted in the appending of \0 characters
to the end of a string buffer, leading to memory crash.

Code now checks that end position of string buffer has been exceeded after
calculating MB character length.

Added new test case demonstrating fix for the bug: show_create_table_utf8.test

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: