fix: check unpack_callback_uint32 result

This commit is contained in:
Thomas Kowalski 2026-04-18 16:33:51 -04:00
parent 6357bc272c
commit 040585f20b
No known key found for this signature in database

View file

@ -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;
}