From 4aac44d257c122920682ecea3501efb06eefe2cd Mon Sep 17 00:00:00 2001 From: Olivier Bertrand Date: Fri, 5 Sep 2014 14:18:31 +0200 Subject: [PATCH] - Fix MDEV-6686 (buffer overflow in MakeRecord) modified: storage/connect/ha_connect.cc --- storage/connect/ha_connect.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/connect/ha_connect.cc b/storage/connect/ha_connect.cc index 5fbd86b0ce1..da491c7fa16 100644 --- a/storage/connect/ha_connect.cc +++ b/storage/connect/ha_connect.cc @@ -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());