1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

MCOL-331: Fix position range check

This commit is contained in:
Ben Thompson
2016-09-29 14:41:53 -05:00
parent 75b8f0602b
commit 12516d93a7

View File

@ -52,7 +52,7 @@ string insertStr(const string& src, int pos, int len, const string& targ)
{
int64_t strLen = static_cast<int64_t>(src.length());
if ((pos <= 0) || ((pos-1) > strLen))
if ((pos <= 0) || ((pos-1) >= strLen))
return src;
if ((len < 0) || (len > strLen))