{ "tokens": { "input": 6030, "cache_read": 4102, "cache_write": 2051, "output": 512 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/f/feather-wallet/feather-wallet_2.8.1+dfsg.orig.tar.xz", "main feather-2.8.1/monero/src/device/device_default.cpp:53:68: style: Parameter 'scalar' can be declared as reference to const [constParameterReference]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The function returns a non-const `unsigned char*` obtained via `&reinterpret_cast(scalar)`. Making `scalar` const would break this, and a const overload already exists. The old code stripped `&` and then took op1 of the cast, missing `scalar`. The new AST traversal follows the `&` and the cast and finds `scalar`, so this false positive is removed." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/f/feather-wallet/feather-wallet_2.8.1+dfsg.orig.tar.xz", "main feather-2.8.1/monero/tests/unit_tests/tx_proof.cpp:39:59: style: Parameter 'point' can be declared as reference to const [constParameterReference]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The function returns a non-const `unsigned char*` obtained via `&reinterpret_cast(point)`, which points into `point`. Making `point` a reference to const would break compilation, since the cast would drop constness and the returned pointer is non-const. The old code only unwrapped `&` and then the cast, so it missed that the cast operand is `point`. The new AST visitor walks through `&` and then the cast and finds the parameter. Removing this false positive is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/f/feather-wallet/feather-wallet_2.8.1+dfsg.orig.tar.xz", "main feather-2.8.1/monero/tests/unit_tests/tx_proof.cpp:43:60: style: Parameter 'scalar' can be declared as reference to const [constParameterReference]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The function returns a non-const `unsigned char*` from `&reinterpret_cast(scalar)`, which points into `scalar`. If the parameter were made `const`, the `reinterpret_cast` to a non-const reference would not compile. Callers also need to write through the returned pointer. The old warning was therefore a false positive. The new AST walk follows the `&` operand and the cast down to `scalar` and suppresses it correctly." } } ], "started": "2026-10-27 00:23:39 UTC", "runner": "pc" }