[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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user