-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
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
Coverity issues with Coverity 2024.6.0 #4430
Comments
@alainsanguinetti Can you provide an updated list of the results? |
Hi @nlohmann, here's an "export", sorry it's the only way I could get the information out efficiently.. |
it's based on a version from July |
Thanks! I will see what's still relevant from this. |
The only valid issue I see here is The ones about the resource leak are incomplete analysis, Coverity just can't see how they're being deleted. It is assuming that It is complaining about asserts. It is complaining that the move constructor is forwarding the argument to the base class constructor. This is how it needs to be done (it could actually just be std::move instead of std::forward, but that doesn't change the behavior, just the amount of text). It is complaining that the It is complaining about the use of 32 bit time_t instead of 64 bit in a templated function, so the It is complaining about using |
Thanks @gregmarr for the analysis!
Maybe @alainsanguinetti can create another check on the latest |
Agreed that the "not moving" should be fixed by that commit. |
Hi, I'll give a try to the update and will report later, could take a few weeks |
Description
Hi,
I am using the library at a place where Coverity scans the source code.
Recently the scanner was upgraded to 2024.6.0
Some new issues are popping up:
For example:
There are around 17 reported issues as far as I can see. I can add the full list in the ticket if interested.
Thanks for this amazing library in any case!
Reproduction steps
Run Coverity 2024.6.0 on json.hpp
Expected vs. actual results
Expect: no errors
Results: some errors are reported
Minimal code example
No response
Error messages
No response
Compiler and operating system
Linux/ unknown
Library version
960b763
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: