-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Static analysis issues #2551
Comments
Files under path |
You're right. I have posted 4 issues related to fmt on their repository page. |
Excuse me, do I understand well, that you don't plan to address 5 race condition issues in spdlog? |
spdlog only imports the latest version of fmt. spdlog will import new versions of fmt as soon as the bugs are fixed. |
Related fmtlib/fmt#3204 |
I have described 9 issues, only the first 4 relate to |
I had overlooked |
Hello,
We are using spdlog (version 1.4.2) in one of the projects I am working on. Running Klocwork for static analysis against the project's code, several issues are reported in the library. Although many reported are false positives, some of them I believe are fixable. I have also checked and most reported issues are related to code that is not available in the newer version of the library (version 1.11.0).
Please check the list below.
include/spdlog/fmt/bundled/format.h:2448 | operator()()
Code: VOIDRET | Severity: Error (2) | State: Existing | Status: Analyze | Taxonomy: C and C++ | Owner: unowned
Fix:
specs_setter
defines a copy constructor, but no assignment operatorinclude/spdlog/fmt/bundled/format.h:1944 | format.h()
Code: CWARN.COPY.NOASSIGN | Severity: Review (4) | State: Existing | Status: Analyze | Taxonomy: C and C++ | Owner: unowned
Fix - removal:
dynamic_specs_handler
defines a copy constructor, but no assignment operatorinclude/spdlog/fmt/bundled/format.h:2174 | format.h()
Code: CWARN.COPY.NOASSIGN | Severity: Review (4) | State: Existing | Status: Analyze | Taxonomy: C and C++ | Owner: unowned
Fix - removal:
error_handler
defines a copy constructor, but no assignment operatorinclude/spdlog/fmt/bundled/core.h:407 | core.h()
Code: CWARN.COPY.NOASSIGN | Severity: Review (4) | State: Existing | Status: Analyze | Taxonomy: C and C++ | Owner: unowned
Fix - removal:
One of the possible solutions to these issues is replacing
std::rename
withrenameat2
.Please, share your opinion with me.
The text was updated successfully, but these errors were encountered: