AI review of 2026-11-17_17-25-27-a985a2cd5e5b-results.txt PR: #9037 https://github.com/cppcheck-opensource/cppcheck/pull/9037 Tested: a985a2cd5e5b08ca03528abcd075a478a3e62e7c Merge base: 530e59ff2e4a79db9da937ac6d8d60342c84d898 Reviewed: 2026-11-18 23:03:10 UTC Model: claude-opus-5-5 (effort high) Results: 2 reviewed of 2 in the report Verdicts: 2 regression Tokens: 3183 input, 5193 cache read, 5193 cache write, 2487 output The verdicts are written by AI and can be wrong. ---- 1 / 2 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/alsaplayer/alsaplayer_0.99.82.orig.tar.gz Result: your alsaplayer-0.99.82/input/vorbis/vorbis_engine.c:226:3: warning:inconclusive: Array 'pcmout' is filled incompletely. Did you forget to multiply the size given to 'memcpy()' with 'sizeof(*pcmout)'? [incompleteArrayFill] Explanation: pcmout is a short array of BLOCK_SIZE_BYTES/sizeof(buf[0]) elements. The PR now resolves this sizeof-based dimension, so the size is known and the incompleteArrayFill check fires. However, `memcpy(pcmout, buf, sizeof(pcmout) / 2)` deliberately copies only half the buffer. That half holds the mono samples, which the loop below then expands to stereo using count = sizeof(pcmout)/(2*sizeof(short)). The byte count only happens to equal the element count because sizeof(short)==2; nobody forgot a sizeof multiplication. The new warning is a false positive. ---- 2 / 2 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/m/milkytracker/milkytracker_1.06+dfsg.orig.tar.xz Result: your MilkyTracker-1.06/src/tracker/ScopesControl.cpp:99:2: portability:inconclusive: Array 'onOffState' might be filled incompletely. Did you forget to multiply the size given to 'memset()' with 'sizeof(*onOffState)'? [incompleteArrayFill] Explanation: The call is `memset(onOffState, 0, sizeof(onOffState))`. `sizeof` of a real array member gives its full size in bytes, so the whole array is always cleared, whatever size `bool` has on a platform. The portability/inconclusive wording implies `onOffState` is a `bool` array. The check warns because the computed `sizeof` value equals the element count, which is true when `sizeof(bool)==1`. The PR newly resolves the array dimension (`TrackerConfig::MAXCHANNELS`) and so the value of `sizeof(onOffState)`. That exposes the check's comparison and produces a new false positive.