mirror of
https://github.com/nlohmann/json.git
synced 2026-10-03 13:10:33 +00:00
The test only reached 5 of the 14 external_constructor overloads that were reordered: reverting the fix in any of the other 9 (const string_t&, compatible strings, binary_t&&, array_t const&/&&, std::valarray, ranges views, object_t const&/&&) left it green. Each of them is now called with a failing allocation, and reverting any single hunk of the fix makes the test fail under ASan. binary_t&& is only reached by to_json for a binary container type other than std::vector<std::uint8_t>, so the test calls the constructor directly. Signed-off-by: Niels Lohmann <mail@nlohmann.me>