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:
commit
289c163a73
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user