The following causes a segmentation fault (stack overflow) due to an apparent unbounded recursion.
#include <string>
#include "json.hpp"
int main(void)
{
const std::string s(512000, '[');
try {
auto j = nlohmann::json::parse(s);
} catch ( ... ) { } ;
return 0;
}
The following causes a segmentation fault (stack overflow) due to an apparent unbounded recursion.