Oliver Stöneberg
Oliver Stöneberg
``` TestBufferOverrun::negativeMemoryAllocationSizeError ================================================================= ==6310==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new vs free) on 0x508001cef5a0 #0 0x557123dcf9c6 in free (/home/runner/work/cppcheck/cppcheck/cmake.output/bin/testrunner+0x48b9c6) (BuildId: 2e4e626b1c0403c69abeadd72a1feaf98331794a) #1 0x7f6e575e096b in std::range_error::~range_error() (/lib/x86_64-linux-gnu/libc++abi.so.1+0x2796b) (BuildId: 4a05732efb87a3a913c0757156a644bb6f99cac8) #2 0x7f6e575e2d33 in __cxa_end_catch...
``` /home/runner/work/cppcheck/cppcheck/externals/tinyxml2/tinyxml2.cpp:613:48: warning: format specifies type 'unsigned long long' but the argument has type 'long long' [-Wformat] 613 | TIXML_SNPRINTF(buffer, bufferSize, "%llu", (long long)v); | ~~~~ ^~~~~~~~~~~~ | %lld /home/runner/work/cppcheck/cppcheck/externals/tinyxml2/tinyxml2.cpp:[25](https://github.com/danmar/cppcheck/actions/runs/10983721351/job/30493428093?pr=6820#step:10:26)21:120:...
The `alloc-dealloc-mismatch` ASAN error has been fixed upstream.
Locally it already exposed an issue: ``` _____________________________________________ test_unused_function_include _____________________________________________ tmpdir = local('/tmp/pytest-of-sshuser/pytest-372/test_unused_function_include0') def test_unused_function_include(tmpdir): test_cpp_file = os.path.join(tmpdir, 'test.cpp') with open(test_cpp_file, 'wt') as f: f.write(""" #include "test.h" """) test_h_file =...
So far I still stand by my previous comment that the build dir should not be used in production ... if all tests pass with the option injected I will...
This requires a way to indicate that `--cppcheck-build-dir` should not be injected into a test.
> So far I still stand by my previous comment that the build dir should not be used in production ... if all tests pass with the option injected I...
> I like the idea to run the tests with and without build dir 👍 Wait til you see the follow-up...
> Marking as draft, as I was not able to trigger the iwyu action in my personal fork or this repository. I could not verify if this pull request really...
Successful iwyu run: https://github.com/danmar/cppcheck/actions/runs/12364137822.