We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rapidjson::Value* pb2jsonobject(const google::protobuf::Message* msg); 这个函数有 use-after-free bug。
rapidjson::Value* pb2jsonobject(const google::protobuf::Message* msg);
json->GetType() != rapidjson::kNumberType
GetInt()/GetUint()/GetInt64()/GetUint64()
IsInt()/IsUint/IsInt65/IsUint64
The text was updated successfully, but these errors were encountered:
No branches or pull requests
rapidjson::Value* pb2jsonobject(const google::protobuf::Message* msg);
这个函数有 use-after-free bug。
json->GetType() != rapidjson::kNumberType
之后就直接调用了GetInt()/GetUint()/GetInt64()/GetUint64()
,这个判断不够严格,会直接 coredump。应该严格用IsInt()/IsUint/IsInt65/IsUint64
。The text was updated successfully, but these errors were encountered: