Skip to content
Snippets Groups Projects
Commit cdee7190 authored by Eduardo Silva's avatar Eduardo Silva
Browse files

time: when retrieving timestamp from record, always validate the data type

parent 5493cb71
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,10 @@ int flb_time_pop_from_msgpack(struct flb_time *time, msgpack_unpacked *upk,
return -1;
}
if (upk->data.type != MSGPACK_OBJECT_ARRAY) {
return -1;
}
obj = upk->data.via.array.ptr[0];
*map = &upk->data.via.array.ptr[1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment