{ "tokens": { "input": 6902, "cache_read": 113486, "cache_write": 56743, "output": 891 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/a/android-platform-tools/android-platform-tools_35.0.2.orig.tar.xz", "main frameworks/native/libs/renderengine/skia/SkiaVkRenderEngine.cpp:440:19: warning: The address of variable 'queuePriorityProps' might be accessed at non-zero index. [objectIndex]\n frameworks/native/libs/renderengine/skia/SkiaVkRenderEngine.cpp:440:31: note: Address of variable taken here.\n frameworks/native/libs/renderengine/skia/SkiaVkRenderEngine.cpp:440:19: note: The address of variable 'queuePriorityProps' might be accessed at non-zero index." ], "verdict": { "verdict": "improvement", "confidence": "high", "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." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/android-platform-tools/android-platform-tools_35.0.2.orig.tar.xz", "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]\n system/core/fastboot/fuzzy_fastboot/test_utils.cpp:165:31: note: Pointer to container is created here.\n system/core/fastboot/fuzzy_fastboot/test_utils.cpp:165:17: note: The address of variable 'args' might be accessed at non-zero index." ], "verdict": { "verdict": "improvement", "confidence": "high", "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." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/synfig/synfig_1.5.5+dfsg.orig.tar.xz", "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]\n synfig-1.5.5/synfig-core/src/modules/mod_png/mptr_png.cpp:232:21: note: Address of variable taken here.\n 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." ], "verdict": { "verdict": "improvement", "confidence": "high", "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." } } ], "started": "2026-12-02 00:52:44 UTC", "runner": "aws-testrunner-3" }