{ "tokens": { "input": 1818, "cache_read": 0, "cache_write": 5802, "output": 612 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/m/mariadb-10.5/mariadb-10.5_10.5.23.orig.tar.gz", "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]" ], "verdict": { "verdict": "regression", "confidence": "high", "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." } } ], "started": "2026-11-21 16:57:29 UTC", "runner": "pc" }