nlohmann/json

Coverity issues with Coverity 2024.6.0

alainsanguinetti opened this issue · 8 comments

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:

image

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