mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Fix for bug#19088: NDBAPI: Segfault in NdbIndexScanOperation::setBound(...)
This commit is contained in:
parent
316c96fa81
commit
8b35dc5738
1 changed files with 5 additions and 0 deletions
|
@ -1086,6 +1086,11 @@ int
|
|||
NdbIndexScanOperation::setBound(const NdbColumnImpl* tAttrInfo,
|
||||
int type, const void* aValue, Uint32 len)
|
||||
{
|
||||
if (!tAttrInfo)
|
||||
{
|
||||
setErrorCodeAbort(4318); // Invalid attribute
|
||||
return -1;
|
||||
}
|
||||
if (theOperationType == OpenRangeScanRequest &&
|
||||
(0 <= type && type <= 4) &&
|
||||
len <= 8000) {
|
||||
|
|
Loading…
Reference in a new issue