Unverified Commit 5c13d7df authored by Robert Edmonds's avatar Robert Edmonds Committed by GitHub

Merge pull request #703 from smuellerDD/fix_corruption

protobuf_c_message_unpack(): Fix memory corruption by initializing unknown_fields pointer
parents 7765485b 55c8b0dc
......@@ -3278,6 +3278,8 @@ protobuf_c_message_unpack(const ProtobufCMessageDescriptor *desc,
n_unknown * sizeof(ProtobufCMessageUnknownField));
if (rv->unknown_fields == NULL)
goto error_cleanup;
} else {
rv->unknown_fields = NULL;
}
/* do real parsing */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment