AI review of 2026-11-21_13-51-06-37c4492ad6e3-results.txt PR: #9037 https://github.com/cppcheck-opensource/cppcheck/pull/9037 Tested: 37c4492ad6e3fce4d202b9506070940b6861e21c Merge base: e1b5791564c662c7dacbc62835f6abe5431aa00b Reviewed: 2026-11-21 22:40:30 UTC Model: claude-opus-5-5 (effort high) Results: 1 reviewed of 1 in the report, the test is still running (500 analysed of 1000 requested packages) Verdicts: 1 regression Tokens: 1818 input, 0 cache read, 5802 cache write, 612 output The verdicts are written by AI and can be wrong. ---- 1 / 1 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/m/mariadb-10.5/mariadb-10.5_10.5.23.orig.tar.gz Result: your mariadb-10.5.23/storage/tokudb/PerconaFT/locktree/tests/wfg_test.cc:52:9: portability:inconclusive: Array 'nodes_visited' might be filled incompletely. Did you forget to multiply the size given to 'memset()' with 'sizeof(*nodes_visited)'? [incompleteArrayFill] Explanation: `nodes_visited` is a member array `bool[WFG_TEST_MAX_TXNID]`, and the code calls `memset(nodes_visited, 0, sizeof(nodes_visited))`. `sizeof(nodes_visited)` is always the full byte size of the array, whatever `sizeof(bool)` is, so the whole array is cleared. The PR now resolves the enum-based dimension (10), so the sizeof value becomes 10 and matches the element count. That triggers the incompleteArrayFill heuristic, which assumes the size argument is an element count missing a `sizeof(*nodes_visited)` multiplier. The new warning is a false positive.