Skip to content
Snippets Groups Projects
Commit ba9a9f72 authored by Konstantin Shulgin's avatar Konstantin Shulgin
Browse files

bug987235:

'find' TreeIndex class member was fixed. Now allocate enough space for key_data.
parent 0edaefc2
No related branches found
No related tags found
No related merge requests found
......@@ -866,7 +866,8 @@ tree_iterator_free(struct iterator *iterator)
- (struct box_tuple *) find: (void *) key : (int) key_cardinality
{
struct key_data *key_data
= alloca(sizeof(struct key_data) + _SIZEOF_SPARSE_PARTS(1));
= alloca(sizeof(struct key_data) +
_SIZEOF_SPARSE_PARTS(key_cardinality));
if (key_cardinality > key_def->part_count)
tnt_raise(ClientError, :ER_KEY_CARDINALITY,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment