Skip to content

corruption when parse from string #2603

@yqynju

Description

@yqynju

hello,
parse from raw sting

nlohmann::json::parse(R"({ "exception" : "",
                    "retr_cost" : "",
                    "li": "",
                    "q" : {"text" : "", "l" : "", "t" : [], "limit" : 15, "th" : 0,"w" : [] },
                    "tc" : {"hwseg":""},
                    "tb" : {"time_cost": "", "result" : []},
                    "tg" : {"time_cost": "", "result" : [] },
                    "tt" : { "time_cost": "", "pw" : "", "pd" : [], "result" : [] },
                    "sn" : { "time_cost": "", "result" : [] },
                    "sv" : { "time_cost": "", "result" : [] },
                    "vb" : { "time_cost": "", "result" : [] },
                    "bd" : { "time_cost":"", "result" : [] },
                    "ee" : { "time_cost" : "", "result" : [] },
                    "bd" : { "time_cost" : "", "result" : [] },
                    "hh" : { "time_cost" : "", "result" : [] }})"

with 64 thread, it come the corrupetion with flowwing:

/usr/include/c++/4.8.2/ext/new_allocator.h:120
/usr/include/c++/4.8.2/bits/stl_map.h:465
json-for-modern-cpp/include/nlohmann/detail/input/json_sax.hpp:221
json-for-modern-cpp/include/nlohmann/detail/input/parser.hpp:120
/usr/include/c++/4.8.2/bits/basic_string.h:539
src/server/server_core.cpp:133

version:
json-for-modern-cpp-3.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions