mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-02 02:20:54 +00:00
segfault fixed when data is unpacked using list_hook,
this bug is a twin to #28. Unit-test is also attached.
This commit is contained in:
parent
4ea952f39d
commit
cf89f18be7
3 changed files with 11 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ _push:
|
|||
if(construct_cb(_array_item)(user, c->count, &c->obj, obj) < 0) { goto _failed; }
|
||||
if(++c->count == c->size) {
|
||||
obj = c->obj;
|
||||
construct_cb(_array_end)(user, &obj);
|
||||
if (construct_cb(_array_end)(user, &obj) < 0) { goto _failed; }
|
||||
--top;
|
||||
/*printf("stack pop %d\n", top);*/
|
||||
goto _push;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue