{ "tokens": { "input": 3209, "cache_read": 0, "cache_write": 4918, "output": 2819 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/i/iwd/iwd_3.12.orig.tar.xz", "your iwd-3.12/ell/dbus.c:673:17: error: Buffer is accessed out of bounds: &hdr [bufferAccessOutOfBounds]" ], "verdict": { "verdict": "regression", "confidence": "high", "explanation": "In ell, `struct dbus_header` is packed: four `uint8_t` fields followed by an anonymous union of two 12-byte packed structs (`dbus1`, `kdbus`). So its size is 16, which equals `DBUS_HEADER_SIZE`, and `recv(fd, &hdr, 16, ...)` is in bounds. The new code treats a member whose type is nested in an anonymous union as a union member and computes `std::max(total, n)`. Here `total` already includes the 4 preceding byte fields, so `dbus1` gives max(4, 12) = 12 instead of 4 + 12 = 16, and `kdbus` keeps it at 12. Cppcheck now thinks sizeof(hdr) is 12, which produces this false bufferAccessOutOfBounds. The PR's test only covers a union that is the first member, so it does not catch this." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/texlive-bin/texlive-bin_2026.20260303.78225+ds.orig.tar.xz", "your texlive-bin-2026.20260303.78225/libs/xpdf/xpdf-src/fofi/FoFiType1C.cc:2107:34: performance: Function parameter 'op' should be passed by const reference. [passedByValue]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "In xpdf, `Type1COp` is a `kind` enum plus an anonymous union of small members (`int intgr`, `double flt`, a small rational struct, `int op`). Its real size on 64-bit is about 16 bytes, which does not exceed cppcheck's large-object threshold of 2*sizeof(pointer). The PR drops the old special handling of anonymous-union members, which counted the union only once. The new `isUnion` test only fires when the member's own type scope is nested inside an anonymous union. Members like `int` and `double`, or a struct declared elsewhere, are therefore summed as if the union were a struct. That inflates `sizeof(Type1COp)` above the threshold and produces this new passedByValue warning. Passing a 16-byte trivially copyable struct by value is fine, so this is likely a new false positive caused by miscomputing the size of anonymous unions." } } ], "started": "2026-10-27 03:21:24 UTC", "runner": "pc" }