Skip to content

Commit 289c163

Browse files
author
David.Hall
authored
Merge pull request mariadb-corporation#657 from mariadb-corporation/MCOL-2018
MCOL-2018 Fix array bounds issue
2 parents 522e4ca + 7989cce commit 289c163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/rowgroup/rowgroup.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@ inline bool StringStore::isNullValue(uint64_t off) const
16171617
return true;
16181618
if (mc->data[offset+4] == 0) // "" = NULL string for some reason...
16191619
return true;
1620-
return (*((uint64_t *) &mc->data[offset]+4) == *((uint64_t *) joblist::CPNULLSTRMARK.c_str()));
1620+
return (memcmp(&mc->data[offset+4], joblist::CPNULLSTRMARK.c_str(), 8) == 0);
16211621
}
16221622

16231623
inline bool StringStore::equals(const std::string &str, uint64_t off) const

0 commit comments

Comments
 (0)