[fix](array-type) fix the be core dump when import number larger than uint64 (#11853)

Co-authored-by: hucheng01 <hucheng01@baidu.com>
This commit is contained in:
carlvinhust2012
2022-08-24 08:51:12 +08:00
committed by GitHub
parent 568f596330
commit 5d627e41a4

View File

@ -171,7 +171,13 @@ private:
case TYPE_LARGEINT: {
__int128 value = 0;
if (iterator->IsNumber()) {
value = iterator->GetUint64();
if (iterator->IsUint64()) {
value = iterator->GetUint64();
} else {
return Status::RuntimeError(
"rapidjson can't parse the number larger than Uint64, please use "
"String to parse as LARGEINT");
}
} else {
std::string_view view(iterator->GetString(), iterator->GetStringLength());
std::stringstream stream;