AI review of 2026-12-01_04-21-36-9af31ae8d308-results.txt PR: #9060 https://github.com/cppcheck-opensource/cppcheck/pull/9060 Tested: 9af31ae8d30802da854447b47a17075fb8248a66 Merge base: e1b5791564c662c7dacbc62835f6abe5431aa00b Reviewed: 2026-12-02 04:42:06 UTC Model: claude-opus-5-5 (effort high) Results: 3 reviewed of 3 in the report, the test is still running (300 analysed of 1000 requested packages) Verdicts: 3 improvement Tokens: 6902 input, 113486 cache read, 56743 cache write, 891 output The verdicts are written by AI and can be wrong. ---- 1 / 3 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/a/android-platform-tools/android-platform-tools_35.0.2.orig.tar.xz Result: main frameworks/native/libs/renderengine/skia/SkiaVkRenderEngine.cpp:440:19: warning: The address of variable 'queuePriorityProps' might be accessed at non-zero index. [objectIndex] frameworks/native/libs/renderengine/skia/SkiaVkRenderEngine.cpp:440:31: note: Address of variable taken here. frameworks/native/libs/renderengine/skia/SkiaVkRenderEngine.cpp:440:19: note: The address of variable 'queuePriorityProps' might be accessed at non-zero index. Explanation: Line 440 indexes `queueProps`, a `std::vector`, with `[i]`. That calls the container's `operator[]`, not pointer arithmetic on the address of `queuePriorityProps`. Both vectors have `queueCount` elements, so indexing at non-zero `i` is valid. The objectIndex warning was a false positive caused by lifetime tracking linking the assigned `&queuePriorityProps[i]` to `queueProps`. The PR now skips objectIndex when the indexed object is not a pointer (`valueType()->pointer == 0`), which removes this false positive. ---- 2 / 3 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/a/android-platform-tools/android-platform-tools_35.0.2.orig.tar.xz Result: main system/core/fastboot/fuzzy_fastboot/test_utils.cpp:165:17: warning: The address of variable 'args' might be accessed at non-zero index. [objectIndex] system/core/fastboot/fuzzy_fastboot/test_utils.cpp:165:31: note: Pointer to container is created here. system/core/fastboot/fuzzy_fastboot/test_utils.cpp:165:17: note: The address of variable 'args' might be accessed at non-zero index. Explanation: On line 165, `args[i]` indexes a `std::vector` passed by value, which is a normal element access through `operator[]`. Main reported objectIndex with the note 'Pointer to container is created here' at `args[i].c_str()`. That is a false positive: `args` is a container object, not the address of a scalar variable, so indexing it at a non-zero index is fine. The PR makes objectIndex skip index operands whose type is not a pointer (`valueType()->pointer == 0`), which removes this false positive. ---- 3 / 3 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/s/synfig/synfig_1.5.5+dfsg.orig.tar.xz Result: main synfig-1.5.5/synfig-core/src/modules/mod_png/mptr_png.cpp:232:15: warning: The address of variable 'data' might be accessed at non-zero index. [objectIndex] synfig-1.5.5/synfig-core/src/modules/mod_png/mptr_png.cpp:232:21: note: Address of variable taken here. synfig-1.5.5/synfig-core/src/modules/mod_png/mptr_png.cpp:232:15: note: The address of variable 'data' might be accessed at non-zero index. Explanation: Line 232 is `row_pointers[i] = &(data[rowbytes*i]);`, where `row_pointers` is a `std::vector`. Indexing a vector calls `operator[]` on a container. It is not pointer arithmetic on the address of a single object. Main reported that `row_pointers[i]` indexes the address of `data`, which is a false positive. The new check in objectIndex skips objects whose value type is not a pointer (`pointer == 0`), and that removes this warning. Removing a false positive is an improvement.