[fix](json)Fix the bug that read json file Out of bounds access (#23411)
This commit is contained in:
@ -615,7 +615,6 @@ Status NewJsonReader::_parse_json_doc(size_t* size, bool* eof) {
|
||||
if (*size == 0) {
|
||||
*eof = true;
|
||||
}
|
||||
_current_offset += *size;
|
||||
}
|
||||
|
||||
_bytes_read_counter += *size;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{"no": 1, "item": {"id": 1, "city": "beijing", "code": 2345671}}
|
||||
{"no": 2, "item": {"id": 2, "city": "shanghai", "code": 2345672}}
|
||||
{"no": 3, "item": {"id": 3, "city": "hangzhou", "code": 2345673}}
|
||||
{"no": 4, "item": {"id": 4, "city": "shenzhen", "code": 2345674}}
|
||||
{"no": 5, "item": {"id": 5, "city": "guangzhou", "code": 2345675}}
|
||||
{"no": 1, "item": {"id":1,"city":"beijing","code":2345671}}
|
||||
{"no": 2, "item": {"id":2,"city":"shanghai","code":2345672}}
|
||||
{"no": 3, "item": {"id":3,"city":"hangzhou","code":2345673}}
|
||||
{"no": 4, "item": {"id":4,"city":"shenzhen","code":2345674}}
|
||||
{"no": 5, "item": {"id":5,"city":"guangzhou","code":2345675}}
|
||||
|
||||
@ -284,15 +284,15 @@
|
||||
9 xian 2345675
|
||||
|
||||
-- !json_limit3 --
|
||||
1 {"id": 1, "city": "beijing", "code": 2345671}
|
||||
2 {"id": 2, "city": "shanghai", "code": 2345672}
|
||||
3 {"id": 3, "city": "hangzhou", "code": 2345673}
|
||||
4 {"id": 4, "city": "shenzhen", "code": 2345674}
|
||||
5 {"id": 5, "city": "guangzhou", "code": 2345675}
|
||||
1 {"id":1,"city":"beijing","code":2345671}
|
||||
2 {"id":2,"city":"shanghai","code":2345672}
|
||||
3 {"id":3,"city":"hangzhou","code":2345673}
|
||||
4 {"id":4,"city":"shenzhen","code":2345674}
|
||||
5 {"id":5,"city":"guangzhou","code":2345675}
|
||||
|
||||
-- !json_limit4 --
|
||||
1 {"id": 1, "city": "beijing", "code": 2345671}
|
||||
2 {"id": 2, "city": "shanghai", "code": 2345672}
|
||||
1 {"id":1,"city":"beijing","code":2345671}
|
||||
2 {"id":2,"city":"shanghai","code":2345672}
|
||||
|
||||
-- !json_root --
|
||||
1 beijing 2345671
|
||||
|
||||
@ -55,7 +55,7 @@ testDirectories = ""
|
||||
excludeGroups = ""
|
||||
// this suites will not be executed
|
||||
|
||||
excludeSuites = "test_leading,test_stream_load_move_memtable,ds_rf95,test_default_limit,test_profile,test_broker_load,test_spark_load,test_refresh_mtmv,test_bitmap_filter,test_export_parquet,test_doris_jdbc_catalog,nereids_delete_mow_partial_update,test_hdfs_tvf"
|
||||
excludeSuites = "test_leading,test_stream_load_move_memtable,ds_rf95,test_default_limit,test_profile,test_broker_load,test_spark_load,test_refresh_mtmv,test_bitmap_filter,test_export_parquet,test_doris_jdbc_catalog,nereids_delete_mow_partial_update"
|
||||
|
||||
// this directories will not be executed
|
||||
excludeDirectories = "workload_manager_p1"
|
||||
|
||||
Reference in New Issue
Block a user