{ "tokens": { "input": 6655, "cache_read": 11936, "cache_write": 5968, "output": 2213 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/h/hdf5/hdf5_2.2.0+repack.orig.tar.gz", "your hdf5-2.2.0+repack/src/H5FDmulti.c:828:9: portability:inconclusive: Array 'in_use' might be filled incompletely. Did you forget to multiply the size given to 'memset()' with 'sizeof(*in_use)'? [incompleteArrayFill]" ], "verdict": { "verdict": "regression", "confidence": "high", "explanation": "`in_use` is a local bool array, and the code calls `memset(in_use, 0, sizeof in_use)`. `sizeof` applied to the array itself always gives its full byte size, whatever `sizeof(bool)` is, so the whole array is filled. The PR now resolves the array dimension, so the computed size equals the element count. That triggers the bool portability branch of incompleteArrayFill, but suggesting a multiply by `sizeof(*in_use)` would be wrong and would overflow. This is a new false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/h/hdf5/hdf5_2.2.0+repack.orig.tar.gz", "your hdf5-2.2.0+repack/src/H5MF.c:2613:9: portability:inconclusive: Array 'fsm_opened' might be filled incompletely. Did you forget to multiply the size given to 'memset()' with 'sizeof(*fsm_opened)'? [incompleteArrayFill]" ], "verdict": { "verdict": "regression", "confidence": "high", "explanation": "`fsm_opened` is a local `bool` array, and it is cleared with `memset(fsm_opened, 0, sizeof(fsm_opened))`. `sizeof` on a local array is the whole array size in bytes, so the call fills the entire array on any platform, whatever `sizeof(bool)` is. The PR now makes the dimension from `H5F_MEM_PAGE_NTYPES` known and folds `sizeof(fsm_opened)` to a constant. With `sizeof(bool)==1` that constant equals the element count, so `incompleteArrayFill` wrongly concludes that the element size was not multiplied in. This new warning is a false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/h/hdf5/hdf5_2.2.0+repack.orig.tar.gz", "your hdf5-2.2.0+repack/src/H5MF.c:2614:9: portability:inconclusive: Array 'fsm_visited' might be filled incompletely. Did you forget to multiply the size given to 'memset()' with 'sizeof(*fsm_visited)'? [incompleteArrayFill]" ], "verdict": { "verdict": "regression", "confidence": "high", "explanation": "`fsm_visited` is a local array `bool fsm_visited[H5F_MEM_PAGE_NTYPES]`, and the call is `memset(fsm_visited, 0, sizeof(fsm_visited))`. `sizeof` of a local array is its full byte size, so the whole array is filled whatever `sizeof(bool)` is. With the PR, the enum-based dimension is now known, so the sizeof value equals the element count when `sizeof(bool)` is 1. The bool portability variant of `incompleteArrayFill` then fires wrongly. This is a new false positive." } } ], "started": "2026-11-22 08:05:38 UTC", "runner": "aws-testrunner-2" }