diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-03-02 12:28:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-03-02 12:28:34 +0200 |
commit | d5924c862b549f9e3d6daedae6611cfc605cdfe7 (patch) | |
tree | 86be3054fc93051a4367407e9435cdcc6a37f8bd | |
parent | 2ee97761e5c375e373dbc9b5f96391b22bb3704e (diff) |
Fix array subscript overflow
-rw-r--r-- | odb/pgsql/container-statements.txx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/pgsql/container-statements.txx b/odb/pgsql/container-statements.txx index 74948f2..7008cbb 100644 --- a/odb/pgsql/container-statements.txx +++ b/odb/pgsql/container-statements.txx @@ -70,7 +70,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].truncated = select_image_truncated_array_ + i; |