We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When parsing JSON which has large floating point numbers, I'm observing program crash.
g++ -I. Test.cpp
ifstream json_file(argv[1]) auto j3 = json::parse(json_file)
Also, please check Test.cpp attached.
JSON should be parsed with no crash.
The cpp file with the above code content crashed with error.
latest release version 3.10.5
other release - please state the version: ___ Failure_repro.zip
the develop branch
develop
The text was updated successfully, but these errors were encountered:
What is the error/exception message?
Sorry, something went wrong.
Also note https://json.nlohmann.me/features/types/number_handling
Your example well-exceeds any 64-bit number type. The library will throw
[json.exception.out_of_range.406] number overflow parsing '...'
in this case which is the expected and documented behavior.
No branches or pull requests
When parsing JSON which has large floating point numbers, I'm observing program crash.
Please describe the steps to reproduce the issue.
g++ -I. Test.cpp
Can you provide a small but working code example?
Also, please check Test.cpp attached.
What is the expected behavior?
JSON should be parsed with no crash.
And what is the actual behavior instead?
The cpp file with the above code content crashed with error.
Which compiler and operating system are you using?
Which version of the library did you use?
latest release version 3.10.5
other release - please state the version: ___
Failure_repro.zip
the
develop
branchIf you experience a compilation error: can you compile and run the unit tests?
The text was updated successfully, but these errors were encountered: