~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzle.cc

  • Committer: Andrew Hutchings
  • Date: 2010-11-07 12:27:27 UTC
  • mto: (1912.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1913.
  • Revision ID: andrew@linuxjedi.co.uk-20101107122727-r9govyzy73qcyvx5
Re-write of linebuffer to stop buffer overrrun and hopefully improve performance
Error if max_line_length hit instead of eating into RAM

Show diffs side-by-side

added added

removed removed

Lines of Context:
2319
2319
  {
2320
2320
    *out++='\n';
2321
2321
    uint32_t length=(uint32_t) (out-line);
 
2322
    if ((buffer->length() + length) > opt_max_input_line)
 
2323
    {
 
2324
      status.setExitStatus(1);
 
2325
      put_info(_("Not found a delimiter within max_input_line of input"), INFO_ERROR, 0, 0);
 
2326
      return 1;
 
2327
    }
2322
2328
    if ((!*ml_comment || preserve_comments))
2323
2329
      buffer->append(line, length);
2324
2330
  }