Skip to content

Commit

Permalink
- Fix MDEV-6686 (buffer overflow in MakeRecord)
Browse files Browse the repository at this point in the history
modified:
  storage/connect/ha_connect.cc
  • Loading branch information
Buggynours committed Sep 5, 2014
1 parent 7c1af79 commit 4aac44d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/connect/ha_connect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1731,10 +1731,10 @@ int ha_connect::MakeRecord(char *buf)

// Store functions returns 1 on overflow and -1 on fatal error
if (rc > 0) {
char buf[128];
char buf[256];
THD *thd= ha_thd();

sprintf(buf, "Out of range value %s for column '%s' at row %ld",
sprintf(buf, "Out of range value %.140s for column '%s' at row %ld",
value->GetCharString(val),
fp->field_name,
thd->get_stmt_da()->current_row_for_warning());
Expand Down

0 comments on commit 4aac44d

Please sign in to comment.