Skip to content

fixing TNT_SBO_SPARSE/TNT_SBO_PACKED type objects serialization breaking if tnt_sbuf_object_grow_stack() gets called (effectively overwriting current stack array with zeroes) #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tnt/tnt_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ tnt_sbuf_object_grow_stack(struct tnt_sbuf_object *sbo)
struct tnt_sbo_stack *stack = tnt_mem_alloc(new_stack_alloc * sizeof(
struct tnt_sbo_stack));
if (!stack) return -1;
memcpy(stack, sbo->stack, sbo->stack_alloc * sizeof(*sbo->stack));
tnt_mem_free(sbo->stack);
sbo->stack_alloc = new_stack_alloc;
sbo->stack = stack;
Expand Down