1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00

Merge pull request #657 from mariadb-corporation/MCOL-2018

MCOL-2018 Fix array bounds issue
This commit is contained in:
David.Hall 2018-12-13 09:24:33 -06:00 committed by GitHub
commit 289c163a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1617,7 +1617,7 @@ inline bool StringStore::isNullValue(uint64_t off) const
return true;
if (mc->data[offset+4] == 0) // "" = NULL string for some reason...
return true;
return (*((uint64_t *) &mc->data[offset]+4) == *((uint64_t *) joblist::CPNULLSTRMARK.c_str()));
return (memcmp(&mc->data[offset+4], joblist::CPNULLSTRMARK.c_str(), 8) == 0);
}
inline bool StringStore::equals(const std::string &str, uint64_t off) const