{ "tokens": { "input": 3519, "cache_read": 0, "cache_write": 6820, "output": 2267 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/e/ell/ell_0.83.orig.tar.xz", "your ell-0.83/ell/dbus.c:673:17: error: Buffer is accessed out of bounds: &hdr [bufferAccessOutOfBounds]" ], "verdict": { "verdict": "regression", "confidence": "high", "explanation": "`struct dbus_header` in ell has four `uint8_t` fields followed by an anonymous union containing the 12-byte `dbus1` struct, so its real size is 16, which equals `DBUS_HEADER_SIZE`. The `recv(fd, &hdr, DBUS_HEADER_SIZE, ...)` call is therefore in bounds. The PR handles anonymous union members as `std::max(total, n)`, but `total` already includes the preceding non-union members. That gives 12 instead of 4 + 12 = 16. The underestimated size causes this new false bufferAccessOutOfBounds." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/x/xen/xen_4.20.4+63-g7abfd2bce2.orig.tar.xz", "main xen-4.20.4+63-g7abfd2bce2/tools/debugger/kdd/kdd.c:816:19: error: Array 's->txb[56]' accessed at index 271, which is out of bounds. [arrayIndexOutOfBounds]\n xen-4.20.4+63-g7abfd2bce2/tools/debugger/kdd/kdd.c:815:23: note: Assuming that condition 'i<0x100' is not redundant\n xen-4.20.4+63-g7abfd2bce2/tools/debugger/kdd/kdd.c:816:19: note: Array index out of bounds" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "In kdd.c, `txb` is the byte-array view of the tx packet inside an anonymous union in `kdd_state`. The code writes up to 0xffff bytes into it (see `kdd_send_string`), so the buffer is clearly much larger than 56 bytes. The dimension cppcheck reported, 56, is a wrong size computation, most likely from a `sizeof` over a struct with anonymous unions. The PR fixes `sizeof` for anonymous unions by taking the maximum member size instead of the first member, so the array size is now computed correctly and this false positive goes away." } } ], "started": "2026-11-04 17:10:34 UTC", "runner": "aws-testrunner-1" }