You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verified to be in msgpack-cxx version 6.1.0, but likely also present in all older versions starting with v1.
To Reproduce
Compile the following code using the Clang Analyzer:
I used clang-cl-16.0.5 + clang-tidy-16.0.5 on Windows
but I have been able to produce similar output on a non-minimal case using clang-15.0.7 + clang-tidy-15.0.7 on Ubuntu 22.04 (installed on Github Actions runner ubuntu-latest using brew)
Describe the bug
according to the Clang static analyzer,
msgpack::zone
calls::free
on memory that has been cleaned up before: https://clang.llvm.org/docs/analyzer/checkers.html#cplusplus-newdeleteVerified to be in
msgpack-cxx
version6.1.0
, but likely also present in all older versions starting withv1
.To Reproduce
Compile the following code using the Clang Analyzer:
clang-cl-16.0.5
+clang-tidy-16.0.5
on Windowsclang-15.0.7
+clang-tidy-15.0.7
on Ubuntu 22.04 (installed on Github Actions runnerubuntu-latest
usingbrew
)This results in the following output:
Expected behavior
The above example compiles correctly.
The text was updated successfully, but these errors were encountered: