You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
MCOL-331: Fix position range check
This commit is contained in:
@@ -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());
|
int64_t strLen = static_cast<int64_t>(src.length());
|
||||||
|
|
||||||
if ((pos <= 0) || ((pos-1) > strLen))
|
if ((pos <= 0) || ((pos-1) >= strLen))
|
||||||
return src;
|
return src;
|
||||||
|
|
||||||
if ((len < 0) || (len > strLen))
|
if ((len < 0) || (len > strLen))
|
||||||
|
Reference in New Issue
Block a user