mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-06-19 06:02:09 +00:00
fix: check unpack_callback_uint32 result
This commit is contained in:
parent
6357bc272c
commit
040585f20b
1 changed files with 4 additions and 1 deletions
|
|
@ -45,7 +45,10 @@ static inline int unpack_container_header(unpack_context* ctx, const char* data,
|
|||
PyErr_SetString(PyExc_ValueError, "Unexpected type header on stream");
|
||||
return -1;
|
||||
}
|
||||
unpack_callback_uint32(&ctx->user, size, &ctx->stack[0].obj);
|
||||
|
||||
if (unpack_callback_uint32(&ctx->user, size, &ctx->stack[0].obj) < 0)
|
||||
return -1;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue