From 8c3815db58dfb852a4351ca67b48690f534cca73 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 2 Mar 2012 12:28:33 +0200 Subject: Fix array subscript overflow --- odb/mysql/container-statements.txx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/odb/mysql/container-statements.txx b/odb/mysql/container-statements.txx index 4960d96..d4e8da6 100644 --- a/odb/mysql/container-statements.txx +++ b/odb/mysql/container-statements.txx @@ -58,7 +58,9 @@ namespace odb 0, sizeof (select_image_truncated_array_)); - for (std::size_t i (0); i < traits::data_column_count; ++i) + for (std::size_t i (0); + i < traits::data_column_count - traits::id_column_count; + ++i) data_image_bind_[i + traits::id_column_count].error = select_image_truncated_array_ + i; -- cgit v1.1