AI review of 2026-11-27_03-43-06-950f5ec32590-results.txt PR: #9077 https://github.com/cppcheck-opensource/cppcheck/pull/9077 Tested: 950f5ec32590e1795627efa20da19d81bda4ce46 Merge base: 35e76b57f7c689ec3e2a80df6e496aec53a2a48b Reviewed: 2026-11-27 19:58:42 UTC Model: claude-opus-5-5 (effort high) Results: 39 reviewed of 39 in the report Verdicts: 5 acceptable regression, 32 improvement, 2 neutral Tokens: 152198 input, 125172 cache read, 3294 cache write, 31788 output The verdicts are written by AI and can be wrong. ---- 1 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/c-blosc2/c-blosc2_3.4.1.orig.tar.gz Result: main Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6025:64: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:5993:5: note: Assuming that condition 'state!=NULL' is not redundant Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6010:17: note: Assuming condition is false Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6024:18: note: Assuming condition is true Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6025:64: note: Null pointer dereference Explanation: The removed warning is a false positive. `state` is asserted non-NULL at line 5993 and is dereferenced unconditionally right afterwards (`state->extSecret` at 5995, `state->totalLen` at 6006, `state->bufferedSize` at 6010). Cppcheck did not warn at those earlier dereferences, but it reported a possible NULL at 6025 after 'assuming' the conditions at 6010 and 6024. The condition at 6024 (`state->bufferedSize`) itself reads `state`, so it cannot be a path on which `state` is NULL. The PR stops splitting a conditional value on a condition that reads that value, which removes this bogus path. ---- 2 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/c-blosc2/c-blosc2_3.4.1.orig.tar.gz Result: main Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6026:24: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:5993:5: note: Assuming that condition 'state!=NULL' is not redundant Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6010:17: note: Assuming condition is false Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6024:18: note: Assuming condition is true Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6026:24: note: Null pointer dereference Explanation: The removed warning is a false positive. `XXH_ASSERT(state != NULL)` states that `state` is non-null, and `state` is already dereferenced unconditionally at lines 5995, 6004 and 6006 before line 6026. A null `state` cannot reach line 6026, and the reported path depends on unrelated conditions (`len <= ...` and `state->bufferedSize`) that say nothing about `state` being null. The PR tightens how condition-derived values are propagated: it requires all operands to be unchanged, and it does not split on a condition that reads the value itself. That removes this spurious path-based null dereference. ---- 3 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/c-blosc2/c-blosc2_3.4.1.orig.tar.gz Result: main Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6026:40: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:5993:5: note: Assuming that condition 'state!=NULL' is not redundant Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6010:17: note: Assuming condition is false Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6024:18: note: Assuming condition is true Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6026:40: note: Null pointer dereference Explanation: `state` is asserted non-NULL at line 5993 (`XXH_ASSERT`). It is then dereferenced unconditionally at lines 5995, 6004, 6006, 6010 and 6024 before line 6026 is reached. The path main reported only survives by splitting on the conditions at 6010 and 6024. Both conditions read `state` themselves, so they say nothing about whether `state` is NULL. `state` cannot be NULL at 6026 without having crashed earlier, so this was a false positive. The PR stops splitting the conditional value on conditions that read the value itself, which removes the warning. ---- 4 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/c-blosc2/c-blosc2_3.4.1.orig.tar.gz Result: main Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6029:56: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:5993:5: note: Assuming that condition 'state!=NULL' is not redundant Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6010:17: note: Assuming condition is false Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6024:18: note: Assuming condition is true Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6029:56: note: Null pointer dereference Explanation: `state` is already dereferenced unconditionally at lines 5995, 6004/6002, 6006 and 6010, before the uses at 6029. A NULL `state` would crash long before line 6029, so this late warning is a spurious path. The path also leans on conditions that themselves read `state->bufferedSize` (6010, 6024). The PR stops splitting conditional values on conditions that read the value itself, which removes this false positive. ---- 5 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/c/c-blosc2/c-blosc2_3.4.1.orig.tar.gz Result: main Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6030:33: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:5993:5: note: Assuming that condition 'state!=NULL' is not redundant Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6010:17: note: Assuming condition is false Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6024:18: note: Assuming condition is true Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6030:33: note: Null pointer dereference Explanation: `state` is asserted non-null at 5993 and dereferenced unconditionally at 5995, 6006 and 6010. The null value was only carried to line 6030 through the conditions at 6010 and 6024, and both of those conditions read `state->bufferedSize`, so they dereference `state` themselves. If `state` were NULL, the code would already have crashed earlier, so the warning at 6030 is a false positive. Its path is also inconsistent: no warnings were reported at the earlier dereferences. The PR stops splitting conditional values on conditions that read the value itself, which removes this bogus path. ---- 6 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/c/c-blosc2/c-blosc2_3.4.1.orig.tar.gz Result: main Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6031:41: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:5993:5: note: Assuming that condition 'state!=NULL' is not redundant Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6010:17: note: Assuming condition is false Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6024:18: note: Assuming condition is true Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6031:41: note: Null pointer dereference Explanation: `state` is already dereferenced unconditionally at lines 5995, 6006 and 6010, right after `XXH_ASSERT(state != NULL)`. If `state` were NULL, the code would crash long before line 6031. Flagging only the later dereferences inside `if (state->bufferedSize)` is therefore inconsistent: the assert just documents a precondition and does not show that NULL is possible there. The warning came from a spurious split on the conditions at lines 6010 and 6024, which read `state` itself; the PR stops splitting on conditions that read the tracked value. Removing this warning removes a false positive. ---- 7 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/c-blosc2/c-blosc2_3.4.1.orig.tar.gz Result: main Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6033:13: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:5993:5: note: Assuming that condition 'state!=NULL' is not redundant Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6010:17: note: Assuming condition is false Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6024:18: note: Assuming condition is true Blosc-c-blosc2-c570957/plugins/codecs/ndlz/xxhash.h:6033:13: note: Null pointer dereference Explanation: Line 5993 is `XXH_ASSERT(state != NULL)`, and `state` is then dereferenced unconditionally at 5995, 6006 and 6010, none of which main flagged. Main only reported a possible null `state` inside `if (state->bufferedSize)`, which itself dereferences `state`. A null `state` cannot reach line 6033 without crashing earlier, so the assert is not a real 'maybe NULL' hint and the warning was a false positive. The PR stops splitting a conditional value on a condition that reads the value itself, which removes exactly this bogus path. ---- 8 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/c-blosc2/c-blosc2_3.4.1.orig.tar.gz Result: main Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:233:11: warning: Either the condition 'i<=20' is redundant or the array 'data[1]' is accessed at index 25, which is out of bounds. [arrayIndexOutOfBoundsCond] Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:227:12: note: Assuming that condition 'i<=20' is not redundant Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:226:34: note: Compound assignment '+=', assigned value is 25 Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:233:11: note: Array index out of bounds Explanation: `isize` becomes 512 (shape[0]), so `data` is malloc'd for 8*512 bytes, i.e. 512 doubles. The loop stops at i < 512 in steps of 4, so `data[i]`..`data[i+3]` at i=24 is always in bounds. Cppcheck's claim that `data` has size 1 and that index 25 overflows is wrong. Linking the `i<=20` condition to the else-branch value 25 is also spurious. The PR stops splitting on a condition that reads the value itself, which removes this false positive. ---- 9 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/c-blosc2/c-blosc2_3.4.1.orig.tar.gz Result: main Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:234:11: warning: Either the condition 'i<=20' is redundant or the array 'data[1]' is accessed at index 26, which is out of bounds. [arrayIndexOutOfBoundsCond] Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:227:12: note: Assuming that condition 'i<=20' is not redundant Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:226:34: note: Compound assignment '+=', assigned value is 25 Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:234:11: note: Array index out of bounds Explanation: `data` is `malloc(8 * 512)`, which is 512 doubles. In this branch `i` is a multiple of 4 between 24 and 140, so `data[i + 1]` stays well within bounds. The warning claims `data[1]` is accessed at index 26, which rests on a wrong buffer size and an impossible value of `i` (25, while the loop steps by 4 from 0). It is a false positive. The PR stops splitting a conditional value on a condition that reads that value, which removes this bogus warning. ---- 10 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/c-blosc2/c-blosc2_3.4.1.orig.tar.gz Result: main Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:235:11: warning: Either the condition 'i<=20' is redundant or the array 'data[1]' is accessed at index 27, which is out of bounds. [arrayIndexOutOfBoundsCond] Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:227:12: note: Assuming that condition 'i<=20' is not redundant Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:226:34: note: Compound assignment '+=', assigned value is 25 Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:235:11: note: Array index out of bounds Explanation: `data` is allocated as `malloc(typesize * isize)`. After the loop over `ndim`, `isize` is 512, so the buffer holds 512 doubles. The loop runs `i < isize` with `i += 4`, so `data[i+2]` never goes past index 511. Index 27 is well within bounds. The removed warning treated `data` as a single-element buffer (`data[1]`) and split on the `i<=20` condition, which reads `i` itself. The PR now refuses that split, so this false positive is gone. ---- 11 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/c-blosc2/c-blosc2_3.4.1.orig.tar.gz Result: main Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:236:11: warning: Either the condition 'i<=20' is redundant or the array 'data[1]' is accessed at index 28, which is out of bounds. [arrayIndexOutOfBoundsCond] Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:227:12: note: Assuming that condition 'i<=20' is not redundant Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:226:34: note: Compound assignment '+=', assigned value is 25 Blosc-c-blosc2-c570957/plugins/filters/ndmean/test_ndmean_mean.c:236:11: note: Array index out of bounds Explanation: `data` is `malloc(8*512)`, so it holds 512 doubles. Cppcheck wrongly treated it as `data[1]`, presumably by keeping `isize`'s initial value of 1. In this branch, `i` lies between 24 and 140, so writing `data[i+3]` at index 28 is well within bounds. The old warning also assumed the condition `i<=20` while using the value 25, which only fits after the branch it guards. The PR stops splitting a value on a condition that reads that same value, so this unsound path no longer appears. A false positive was removed. ---- 12 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/d/dav2d/dav2d_0.0.1.orig.tar.gz Result: main dav2d-0.0.1-0430370c7f84de6b81839785c5e5411a9d39dcec/src/obu.c:904:32: error: Array 'order[7]' accessed at index -1, which is out of bounds. [negativeIndex] dav2d-0.0.1-0430370c7f84de6b81839785c5e5411a9d39dcec/src/obu.c:890:18: note: Assignment 'n_past=0', assigned value is 0 dav2d-0.0.1-0430370c7f84de6b81839785c5e5411a9d39dcec/src/obu.c:892:23: note: Assuming condition is false dav2d-0.0.1-0430370c7f84de6b81839785c5e5411a9d39dcec/src/obu.c:902:16: note: Assuming condition is true dav2d-0.0.1-0430370c7f84de6b81839785c5e5411a9d39dcec/src/obu.c:902:16: note: Assuming that condition 'n_past==n_refs' is not redundant dav2d-0.0.1-0430370c7f84de6b81839785c5e5411a9d39dcec/src/obu.c:904:32: note: Negative array index Explanation: The warning needs `n_refs == 0`. Cppcheck gets there by assuming the loop at line 892 never runs, so `n_past` stays 0, and then taking `n_past == n_refs` as true. That makes `order[n_refs - 1]` index -1. In this function `n_refs` comes from `hdr->n_ref_frames`, and `n_refs == 1` is handled with an early return. That shows the function is only meant for inter frames with at least one reference, so `n_refs == 0` is not a realistic input. The value -1 is not a known value of `n_refs`. It comes from combining a loop-skipped value of `n_past` with an equality condition that reads `n_past` itself. That is the kind of split the PR now refuses: a condition that reads the tracked value guards it. The removed `negativeIndex` was most likely a false positive. It cannot be fully proven from this snippet, because nothing here explicitly enforces `n_refs >= 1`. ---- 13 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/d/dav2d/dav2d_0.0.1.orig.tar.gz Result: main dav2d-0.0.1-0430370c7f84de6b81839785c5e5411a9d39dcec/src/obu.c:905:32: error: Array 'order[7]' accessed at index -2, which is out of bounds. [negativeIndex] dav2d-0.0.1-0430370c7f84de6b81839785c5e5411a9d39dcec/src/obu.c:890:18: note: Assignment 'n_past=0', assigned value is 0 dav2d-0.0.1-0430370c7f84de6b81839785c5e5411a9d39dcec/src/obu.c:892:23: note: Assuming condition is false dav2d-0.0.1-0430370c7f84de6b81839785c5e5411a9d39dcec/src/obu.c:902:16: note: Assuming condition is true dav2d-0.0.1-0430370c7f84de6b81839785c5e5411a9d39dcec/src/obu.c:902:16: note: Assuming that condition 'n_past==n_refs' is not redundant dav2d-0.0.1-0430370c7f84de6b81839785c5e5411a9d39dcec/src/obu.c:905:32: note: Negative array index Explanation: The warning needs `n_refs == 0`: the loop body never runs, `n_past` stays 0, and `n_past == n_refs` holds. Cppcheck gets there only by assuming the loop condition is false on entry. `n_refs` is the number of reference frames of a frame that uses TIP references. The function already returns early when `n_refs == 1`, and the code is written for at least 2 refs (it reads `order[1]` and `order[n_refs-2]`). An inter frame with 0 refs is not a realistic input, so this is very likely a false positive built on a stacked chain of assumptions. The PR stops value splitting on conditions that read the tracked value and requires the whole condition to be unchanged. Losing this warning is therefore a removed false positive, not a lost true positive. ---- 14 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/d/drc/drc_3.2.3~dfsg0.orig.tar.xz Result: main drc-3.2.3/source/gsl/real_init.c:87:29: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: wavetable [nullPointerOutOfMemory] drc-3.2.3/source/gsl/real_init.c:37:11: note: Assuming allocation function fails drc-3.2.3/source/gsl/real_init.c:36:15: note: Assignment 'wavetable=(gsl_fft_real_wavetable*)malloc(sizeof(gsl_fft_real_wavetable))', assigned value is 0 drc-3.2.3/source/gsl/real_init.c:44:9: note: Assuming condition is true drc-3.2.3/source/gsl/real_init.c:87:29: note: Null pointer dereference Explanation: Line 37 is the `wavetable == NULL` check after the malloc. The early return in GSL_ERROR_VAL ends that path, so `wavetable` cannot be null afterwards. Main itself does not flag the dereferences at lines 64, 66 and 78, which come before the loop, so it knew `wavetable` was non-null there. The null value only showed up again inside the loop at lines 87/88, which points to a bad conditional split of the loop condition `i < wavetable->nf`. The PR stops splitting conditionals on conditions that read the tracked value itself, which fits removing this false positive. ---- 15 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/d/drc/drc_3.2.3~dfsg0.orig.tar.xz Result: main drc-3.2.3/source/gsl/real_init.c:87:29: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: wavetable [nullPointerOutOfMemory] drc-3.2.3/source/gsl/real_init.c:37:11: note: Assuming allocation function fails drc-3.2.3/source/gsl/real_init.c:36:15: note: Assignment 'wavetable=(gsl_fft_real_wavetable_float*)malloc(sizeof(gsl_fft_real_wavetable_float))', assigned value is 0 drc-3.2.3/source/gsl/real_init.c:44:9: note: Assuming condition is true drc-3.2.3/source/gsl/real_init.c:87:29: note: Null pointer dereference Explanation: Line 36 assigns `wavetable` from malloc, and line 37 checks it for NULL. In GSL that branch uses `GSL_ERROR_VAL`, a macro that returns. So `wavetable` cannot be null at the `wavetable->factor[i]` dereference on line 87. Cppcheck likely reported this path only because it did not see the macro's return. Even if the path were real, `wavetable` is already dereferenced earlier (e.g. line 64), so this loop-body report adds nothing. Dropping this inconclusive warning removes a false positive or redundant noise, which is consistent with the PR's tighter conditional splitting. ---- 16 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/d/drc/drc_3.2.3~dfsg0.orig.tar.xz Result: main drc-3.2.3/source/gsl/real_init.c:88:31: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: wavetable [nullPointerOutOfMemory] drc-3.2.3/source/gsl/real_init.c:37:11: note: Assuming allocation function fails drc-3.2.3/source/gsl/real_init.c:36:15: note: Assignment 'wavetable=(gsl_fft_real_wavetable*)malloc(sizeof(gsl_fft_real_wavetable))', assigned value is 0 drc-3.2.3/source/gsl/real_init.c:44:9: note: Assuming condition is true drc-3.2.3/source/gsl/real_init.c:88:31: note: Null pointer dereference Explanation: The removed warning claims `wavetable` may be NULL at line 88 after a failed `malloc` at line 36. In GSL code, the NULL check at line 37 calls `GSL_ERROR_VAL`, which returns. So `wavetable` cannot be NULL here. Even if it could, line 64 (`wavetable->n = n`) and the loop condition `wavetable->nf` already dereference it before line 88. A NULL value surviving into the loop body is therefore a false positive, or at best a redundant duplicate. The PR stops splitting conditional values on conditions that read the value itself (`i < wavetable->nf`), which removes this spurious report. Removing it is an improvement. ---- 17 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/d/drc/drc_3.2.3~dfsg0.orig.tar.xz Result: main drc-3.2.3/source/gsl/real_init.c:88:31: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: wavetable [nullPointerOutOfMemory] drc-3.2.3/source/gsl/real_init.c:37:11: note: Assuming allocation function fails drc-3.2.3/source/gsl/real_init.c:36:15: note: Assignment 'wavetable=(gsl_fft_real_wavetable_float*)malloc(sizeof(gsl_fft_real_wavetable_float))', assigned value is 0 drc-3.2.3/source/gsl/real_init.c:44:9: note: Assuming condition is true drc-3.2.3/source/gsl/real_init.c:88:31: note: Null pointer dereference Explanation: Line 37 checks the `wavetable` malloc result for NULL and calls GSL_ERROR_VAL, which in GSL returns from the function. So a null `wavetable` cannot reach line 88, and this warning was likely a false positive caused by Cppcheck not resolving the macro. Even if the null path were reachable, the null pointer would already be dereferenced at line 64 and in the loop condition `i < wavetable->nf`. The warning inside the loop body would then only duplicate an earlier report. The PR stops splitting a conditional value on a condition that reads the value itself, here `wavetable->nf`, which removes this redundant, likely false report. ---- 18 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/d/drc/drc_3.2.3~dfsg0.orig.tar.xz Result: main drc-3.2.3/source/gsl/real_init.c:88:7: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: wavetable [nullPointerOutOfMemory] drc-3.2.3/source/gsl/real_init.c:37:11: note: Assuming allocation function fails drc-3.2.3/source/gsl/real_init.c:36:15: note: Assignment 'wavetable=(gsl_fft_real_wavetable*)malloc(sizeof(gsl_fft_real_wavetable))', assigned value is 0 drc-3.2.3/source/gsl/real_init.c:44:9: note: Assuming condition is true drc-3.2.3/source/gsl/real_init.c:88:7: note: Null pointer dereference Explanation: In the function as shown, `wavetable` comes from `malloc` and is then dereferenced unconditionally at lines 64, 66 and 78. Cppcheck does not warn there. In GSL code the allocation is normally followed by `if (wavetable == NULL) GSL_ERROR_VAL(..., 0)`, which returns early, but lines 36–47 are not shown, so this is inferred rather than checked. Main reported the null pointer only inside the loop at lines 87/88, and only after 'Assuming condition is true' at line 44. This points to a spurious split on a conditional value, not real tracking of a null pointer: if wavetable could be null there, the earlier dereferences would be flagged too. The PR stops splitting conditional values on conditions that read the value itself, such as `i < wavetable->nf`, which removes this artifact. The removed warning is most likely a false positive. ---- 19 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/d/drc/drc_3.2.3~dfsg0.orig.tar.xz Result: main drc-3.2.3/source/gsl/real_init.c:88:7: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: wavetable [nullPointerOutOfMemory] drc-3.2.3/source/gsl/real_init.c:37:11: note: Assuming allocation function fails drc-3.2.3/source/gsl/real_init.c:36:15: note: Assignment 'wavetable=(gsl_fft_real_wavetable_float*)malloc(sizeof(gsl_fft_real_wavetable_float))', assigned value is 0 drc-3.2.3/source/gsl/real_init.c:44:9: note: Assuming condition is true drc-3.2.3/source/gsl/real_init.c:88:7: note: Null pointer dereference Explanation: This is GSL's real wavetable allocator. Lines 36–37 assign the result of malloc to `wavetable`. In GSL this is followed by `if (wavetable == NULL) GSL_ERROR_VAL(...)`, which returns. After that, `wavetable` is dereferenced unconditionally at line 64 and line 78, yet main only warns inside the loop at lines 87–88. That pattern is a value-splitting artifact, not a real null path: by line 88 `wavetable` is either non-null or the function has already returned. The PR stops splitting conditional values on conditions that read the value itself, here the loop condition `i < wavetable->nf`. Removing this spurious nullPointerOutOfMemory warning is therefore an improvement. Confidence is medium because lines 38–43 are not shown. ---- 20 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/e/edk2/edk2_2026.11+ds.orig.tar.xz Result: main edk2-2026.11+ds/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c:4276:8: warning:inconclusive: Either the condition 'q!=NULL' is redundant or there is possible null pointer dereference: j. [nullPointerRedundantCheck] edk2-2026.11+ds/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c:4270:2: note: Assuming that condition 'q!=NULL' is not redundant edk2-2026.11+ds/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c:4271:2: note: Assuming condition is false edk2-2026.11+ds/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c:4275:5: note: j is assigned '(struct Junction*)q' here. edk2-2026.11+ds/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c:4276:8: note: Null pointer dereference Explanation: In `findImmedAction`, `q` is dereferenced at 4271 (`q->ntype`) and again in the loop condition at 4273 before `j = q` at 4275. Inside the loop, `q = j->p1` is followed by `if (q == NULL) return NULL;`, so `j` can never be NULL at 4276. The 'Assuming condition is false' path through the `require` checks does not produce a null `j` at that line. The warning was a false positive from the analyzer splitting on an unrelated condition, and the PR now stops that split. Removing it is an improvement. ---- 21 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/h/hpsockd/hpsockd_0.17+x.orig.tar.xz Result: main hpsockd-0.17/src/sockd/dns.c:370:23: warning: Uninitialized variable: req->clientFd [uninitvar] hpsockd-0.17/src/sockd/dns.c:346:31: note: Assignment 'req=(struct dnsReqType*)sbuf', assigned value is hpsockd-0.17/src/sockd/dns.c:361:9: note: Assuming condition is false hpsockd-0.17/src/sockd/dns.c:364:10: note: Assuming condition is false hpsockd-0.17/src/sockd/dns.c:370:23: note: Uninitialized variable: req->clientFd Explanation: The warning claimed req->clientFd is uninitialized at line 370. That is a false positive. req points to sbuf, and recvfrom(fd, sbuf, ...) fills sbuf on line 358. We only reach line 370 when ret == sizeof(*req), so the request struct has been fully written. Removing this uninitvar false positive is an improvement. ---- 22 / 39 ---- Verdict: ACCEPTABLE REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/libs/libsereal-encoder-perl/libsereal-encoder-perl_7.003+ds.orig.tar.xz Result: main Sereal-Encoder-7.003/miniz.c:2464:23: warning: Uninitialized variable: r->m_num_bits [uninitvar] Sereal-Encoder-7.003/miniz.c:2924:9: note: Assuming condition is true Sereal-Encoder-7.003/miniz.c:2928:52: note: Calling function 'tinfl_decompress', 1st argument '&decomp' value is Sereal-Encoder-7.003/miniz.c:2451:59: note: Assuming condition is false Sereal-Encoder-7.003/miniz.c:2464:23: note: Uninitialized variable: r->m_num_bits Explanation: The caller at 2924–2928 is not shown. In miniz, the caller usually declares a local `tinfl_decompressor decomp` and calls `tinfl_init(&decomp)`. That macro only sets `m_state = 0`. `tinfl_decompress` then copies `r->m_num_bits` and other fields into locals at line 2464, before `TINFL_CR_BEGIN` resets them in state 0. So on the first call an indeterminate member really is read. It is harmless because the value is overwritten before use, but it is technically a true uninitialized read. The PR stops conditional values from being split on conditions that read the value itself, and the path through the line 2451 condition likely no longer carries the `` value. The removed warning is therefore probably a lost true positive of low practical value. Without the caller code this cannot be fully confirmed. ---- 23 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/m/midish/midish_1.4.0.orig.tar.gz Result: main midish-1.4.0/builtin.c:3523:10: warning: Either the condition '!arg' is redundant or there is possible null pointer dereference: arg. [nullPointerRedundantCheck] midish-1.4.0/builtin.c:3515:6: note: Assuming that condition '!arg' is not redundant midish-1.4.0/builtin.c:3519:22: note: Assuming condition is false midish-1.4.0/builtin.c:3522:29: note: Assuming condition is true midish-1.4.0/builtin.c:3523:10: note: Null pointer dereference Explanation: In midish, `panic()` aborts the program, so `arg` cannot be null after the `if (!arg)` block. The warning was also inconsistent. `arg->data->type` is already dereferenced at line 3519, yet the reported path treats that condition as evaluated and then flags the later `arg->data->val.num` at 3523. This looks like a spurious conditional-value split, which the PR's `canSplitConditional` change now prevents. Removing this false positive is an improvement. ---- 24 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/m/midish/midish_1.4.0.orig.tar.gz Result: main midish-1.4.0/builtin.c:3585:10: warning: Either the condition '!arg' is redundant or there is possible null pointer dereference: arg. [nullPointerRedundantCheck] midish-1.4.0/builtin.c:3577:6: note: Assuming that condition '!arg' is not redundant midish-1.4.0/builtin.c:3581:22: note: Assuming condition is false midish-1.4.0/builtin.c:3584:29: note: Assuming condition is true midish-1.4.0/builtin.c:3585:10: note: Null pointer dereference Explanation: In blt_dclkrx, `arg` is checked for NULL and the null branch calls `panic()`, which aborts in midish. So `arg` is non-null afterwards, and the warning was a false positive in practice. The reported path is also odd. `arg->data->type` is already dereferenced at line 3581, yet the warning lands on line 3585 after assuming the `arg->data->type` conditions. That looks like an artifact of the conditional-value splitting that the PR restricts. Removing this warning is an improvement. ---- 25 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/m/midish/midish_1.4.0.orig.tar.gz Result: main midish-1.4.0/user.c:599:10: warning: Either the condition '!arg' is redundant or there is possible null pointer dereference: arg. [nullPointerRedundantCheck] midish-1.4.0/user.c:590:6: note: Assuming that condition '!arg' is not redundant midish-1.4.0/user.c:594:22: note: Assuming condition is false midish-1.4.0/user.c:597:29: note: Assuming condition is true midish-1.4.0/user.c:599:10: note: Null pointer dereference Explanation: `arg` is checked for NULL and `panic()` is called, which aborts in midish, so `arg` cannot be NULL afterwards. Even if Cppcheck does not know that `panic()` never returns, `arg->data` is already dereferenced at line 594. A NULL value that survives that dereference and is then reported only at line 599, after splitting on `arg->data->type == DATA_LONG`, is a flawed value-flow path. The PR stops splitting conditional values on conditions that read the value itself, which removes this bogus path. The removed warning was a false positive. ---- 26 / 39 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/m/mobilitydb/mobilitydb_1.3.2.orig.tar.gz Result: main MobilityDB-MobilityDB-b37bb39/postgis/liblwgeom/lwstroke.c:1018:14: warning: Either the condition '!points' is redundant or there is possible null pointer dereference: points. [nullPointerRedundantCheck] MobilityDB-MobilityDB-b37bb39/postgis/liblwgeom/lwstroke.c:1003:7: note: Assuming that condition '!points' is not redundant MobilityDB-MobilityDB-b37bb39/postgis/liblwgeom/lwstroke.c:1007:23: note: Assuming condition is false MobilityDB-MobilityDB-b37bb39/postgis/liblwgeom/lwstroke.c:1011:23: note: Assuming condition is true MobilityDB-MobilityDB-b37bb39/postgis/liblwgeom/lwstroke.c:1018:14: note: Null pointer dereference Explanation: `points` is already dereferenced at line 1007 (`points->npoints == 0`), right after the `!points` check. If `points` were null, the code would crash there, never reaching line 1018. The removed path assumes the conditions at lines 1007 and 1011, both of which read `points` itself. That is exactly the case the PR stops splitting on, because such a condition guards the value. So the line-1018 report is at best a redundant duplicate of the earlier dereference. In practice it is also a false positive, since PostGIS's `lwerror` does not return (it longjmps). Dropping it reduces noise without losing a real finding. ---- 27 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/m/mozjs140/mozjs140_140.17.0.orig.tar.xz Result: main firefox-140.17.0/mozglue/static/lz4/xxhash.h:6499:64: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] firefox-140.17.0/mozglue/static/lz4/xxhash.h:6467:5: note: Assuming that condition 'state!=NULL' is not redundant firefox-140.17.0/mozglue/static/lz4/xxhash.h:6484:17: note: Assuming condition is false firefox-140.17.0/mozglue/static/lz4/xxhash.h:6498:18: note: Assuming condition is true firefox-140.17.0/mozglue/static/lz4/xxhash.h:6499:64: note: Null pointer dereference Explanation: The function asserts `state != NULL` and then dereferences `state` unconditionally at lines 6469, 6476/6478 and 6480. If `state` were NULL, the code would fail there first. Main only reported the dereference at 6499 after splitting on `state->bufferedSize` conditions (6484, 6498). Those conditions read `state` themselves, so they cannot tell whether `state` is null. The warning at this late location was therefore a false positive, an artifact of that split. The PR stops splitting a conditional value on a condition that reads the value itself, which removes this false positive. ---- 28 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/m/mozjs140/mozjs140_140.17.0.orig.tar.xz Result: main firefox-140.17.0/mozglue/static/lz4/xxhash.h:6500:24: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] firefox-140.17.0/mozglue/static/lz4/xxhash.h:6467:5: note: Assuming that condition 'state!=NULL' is not redundant firefox-140.17.0/mozglue/static/lz4/xxhash.h:6484:17: note: Assuming condition is false firefox-140.17.0/mozglue/static/lz4/xxhash.h:6498:18: note: Assuming condition is true firefox-140.17.0/mozglue/static/lz4/xxhash.h:6500:24: note: Null pointer dereference Explanation: XXH_ASSERT(state != NULL) at line 6467 is only an assertion that state is non-null. By line 6500, state has already been dereferenced unconditionally many times (lines 6469, 6480, 6481, 6484, 6498). Main's warning comes from splitting the possible NULL value on conditions like 'state->bufferedSize' that read state itself. That split is bogus: if state were NULL, the dereference would already have happened before line 6500. The PR stops splitting on conditions that read the value, which removes this false positive. ---- 29 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/m/mozjs140/mozjs140_140.17.0.orig.tar.xz Result: main firefox-140.17.0/mozglue/static/lz4/xxhash.h:6500:40: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] firefox-140.17.0/mozglue/static/lz4/xxhash.h:6467:5: note: Assuming that condition 'state!=NULL' is not redundant firefox-140.17.0/mozglue/static/lz4/xxhash.h:6484:17: note: Assuming condition is false firefox-140.17.0/mozglue/static/lz4/xxhash.h:6498:18: note: Assuming condition is true firefox-140.17.0/mozglue/static/lz4/xxhash.h:6500:40: note: Null pointer dereference Explanation: The code asserts `state != NULL` at line 6467. Right after that, it dereferences `state` unconditionally at lines 6469, 6480 and 6481. By the time execution reaches line 6500, `state` has already been dereferenced many times, so it cannot be NULL there. The removed warning claimed a possible null dereference at 6500:40 via a path that "assumes" the conditions at 6484 and 6498. Those conditions are not correlated with `state` being NULL. This is a false positive caused by incorrectly splitting the conditional null value on unrelated conditions. The PR stops that split when the condition reads the value itself (here `state->bufferedSize`), so removing the warning is correct. ---- 30 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/m/mozjs140/mozjs140_140.17.0.orig.tar.xz Result: main firefox-140.17.0/mozglue/static/lz4/xxhash.h:6503:56: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] firefox-140.17.0/mozglue/static/lz4/xxhash.h:6467:5: note: Assuming that condition 'state!=NULL' is not redundant firefox-140.17.0/mozglue/static/lz4/xxhash.h:6484:17: note: Assuming condition is false firefox-140.17.0/mozglue/static/lz4/xxhash.h:6498:18: note: Assuming condition is true firefox-140.17.0/mozglue/static/lz4/xxhash.h:6503:56: note: Null pointer dereference Explanation: `state` is asserted non-null at line 6467 and is dereferenced unconditionally at lines 6469, 6480, 6484 and 6498, all before line 6503. It cannot be NULL at 6503, so the old warning was a false positive. The warning only came from splitting the possible-NULL value on the conditions at 6484 and 6498, and both of those conditions read `state` itself (`state->bufferedSize`). The PR stops splitting on conditions that read the tracked value, which is exactly the case here, so this false positive is correctly removed. ---- 31 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/m/mozjs140/mozjs140_140.17.0.orig.tar.xz Result: main firefox-140.17.0/mozglue/static/lz4/xxhash.h:6504:33: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] firefox-140.17.0/mozglue/static/lz4/xxhash.h:6467:5: note: Assuming that condition 'state!=NULL' is not redundant firefox-140.17.0/mozglue/static/lz4/xxhash.h:6484:17: note: Assuming condition is false firefox-140.17.0/mozglue/static/lz4/xxhash.h:6498:18: note: Assuming condition is true firefox-140.17.0/mozglue/static/lz4/xxhash.h:6504:33: note: Null pointer dereference Explanation: `state` is asserted non-NULL at 6467 and then dereferenced unconditionally at 6469 and 6480, with no warning there. The 6504 warning only appears after the path notes 'assuming' the conditions at 6484 and 6498. Those conditions read `state` itself (`state->bufferedSize`), so they say nothing about whether `state` is NULL. This is exactly the bad conditional split the PR stops (`canSplitConditional` now refuses conditions that read the tracked value). Nothing between 6469 and 6504 can make `state` NULL, so the warning was a false positive and removing it is correct. ---- 32 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/m/mozjs140/mozjs140_140.17.0.orig.tar.xz Result: main firefox-140.17.0/mozglue/static/lz4/xxhash.h:6505:41: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] firefox-140.17.0/mozglue/static/lz4/xxhash.h:6467:5: note: Assuming that condition 'state!=NULL' is not redundant firefox-140.17.0/mozglue/static/lz4/xxhash.h:6484:17: note: Assuming condition is false firefox-140.17.0/mozglue/static/lz4/xxhash.h:6498:18: note: Assuming condition is true firefox-140.17.0/mozglue/static/lz4/xxhash.h:6505:41: note: Null pointer dereference Explanation: The removed warning is a false positive. `XXH_ASSERT(state != NULL)` is an assertion, so it does not mean `state` can really be NULL. `state` is also dereferenced unconditionally right after it (lines 6469, 6480, 6481, 6484), and Cppcheck did not warn there. The warning at 6505 only appeared because the conditional null value was split on conditions `len <= ... - state->bufferedSize` and `if (state->bufferedSize)`. Both of these conditions read `state` itself. If `state` were NULL, those conditions would already have dereferenced it, so they cannot be used as a path on which `state` is NULL. The PR stops splitting a conditional value on a condition that reads the value itself, which removes this false positive. ---- 33 / 39 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/m/mozjs140/mozjs140_140.17.0.orig.tar.xz Result: main firefox-140.17.0/mozglue/static/lz4/xxhash.h:6507:13: warning: Either the condition 'state!=NULL' is redundant or there is possible null pointer dereference: state. [nullPointerRedundantCheck] firefox-140.17.0/mozglue/static/lz4/xxhash.h:6467:5: note: Assuming that condition 'state!=NULL' is not redundant firefox-140.17.0/mozglue/static/lz4/xxhash.h:6484:17: note: Assuming condition is false firefox-140.17.0/mozglue/static/lz4/xxhash.h:6498:18: note: Assuming condition is true firefox-140.17.0/mozglue/static/lz4/xxhash.h:6507:13: note: Null pointer dereference Explanation: The warning claimed `state` could be NULL at line 6507, based on `XXH_ASSERT(state != NULL)`. But `state` is already dereferenced unconditionally at lines 6469, 6480 and 6481, and no warning is reported there. The null value only shows up after the branch conditions at 6484 and 6498 ('Assuming condition is false/true'). That points to a bad conditional split in ValueFlow, not a real path where `state` is NULL. The PR stops splitting on conditions that read the tracked value itself, which removes this false positive and its siblings in the same block. ---- 34 / 39 ---- Verdict: ACCEPTABLE REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/n/ncbi-blast+/ncbi-blast+_2.17.0+ds.orig.tar.xz Result: main ncbi-blast-2.17.0+-src/c++/src/util/compress/api/miniz/miniz.c:2414:19: warning: Uninitialized variable: r->m_num_bits [uninitvar] ncbi-blast-2.17.0+-src/c++/src/util/compress/api/miniz/miniz.c:2879:5: note: Assuming condition is true ncbi-blast-2.17.0+-src/c++/src/util/compress/api/miniz/miniz.c:2883:48: note: Calling function 'tinfl_decompress', 1st argument '&decomp' value is ncbi-blast-2.17.0+-src/c++/src/util/compress/api/miniz/miniz.c:2408:55: note: Assuming condition is false ncbi-blast-2.17.0+-src/c++/src/util/compress/api/miniz/miniz.c:2414:19: note: Uninitialized variable: r->m_num_bits Explanation: The removed warning reports a read of `r->m_num_bits` at line 2414, reached from a caller at line 2883 that passes `&decomp` while it is still uninitialized. In upstream miniz, `tinfl_init()` only sets `m_state = 0`. Line 2414 then copies `m_num_bits`, `m_bit_buf`, `m_dist` and other fields into locals before `TINFL_CR_BEGIN`. On a fresh decompressor these reads really are of indeterminate values, even though state 0 overwrites the locals right away (line 2422), so the read is harmless in practice. Cppcheck's report was therefore technically correct. The PR changes conditional value splitting and the `programMemoryParseCondition` change check, and it does not appear to target this pattern, so losing the warning looks like a new false negative. The caller code at 2879–2883 is not shown, so it cannot be confirmed that NCBI's copy initializes nothing beyond `m_state`. ---- 35 / 39 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/p/plus42/plus42_1.5.4+ds.orig.tar.xz Result: main plus42-upstream-1.5.4/common/core_equations.cc:370:26: portability: Undefined behaviour, pointer arithmetic 'eqn_menus+id' is out of bounds. [pointerOutOfBounds] plus42-upstream-1.5.4/common/core_equations.cc:4081:46: note: Calling function 'select_function_menu', 1st argument '1023' value is 1023 plus42-upstream-1.5.4/common/core_equations.cc:2840:33: note: Calling function 'sibling_menus', 1st argument 'menu' value is 1023 plus42-upstream-1.5.4/common/core_equations.cc:2823:28: note: Assuming condition is false plus42-upstream-1.5.4/common/core_equations.cc:2825:15: note: Assuming condition is false plus42-upstream-1.5.4/common/core_equations.cc:2829:25: note: Calling function 'getmenu', 1st argument 'menu1' value is 1023 plus42-upstream-1.5.4/common/core_equations.cc:370:26: note: Pointer arithmetic overflow Explanation: `getmenu` computes `eqn_menus + id - 1000`, which parses as `(eqn_menus + id) - 1000`. For any `id >= 1000` the intermediate pointer `eqn_menus + id` is far past the end of the much smaller `eqn_menus` array, which is technically undefined behaviour. So the old warning (id = 1023 via `select_function_menu`) and the new warning (id = 1000 from the condition `id>=1000`) both describe the same real portability issue on the same line, with the same severity. Main gave a concrete call path; the PR instead reports a conditional variant based on the guarding condition. The PR likely dropped the 1023 path through its new split restriction. The user is still warned at the same spot about the same defect, so the change is essentially a rewording. ---- 36 / 39 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/p/plus42/plus42_1.5.4+ds.orig.tar.xz Result: your plus42-upstream-1.5.4/common/core_equations.cc:370:26: portability: Undefined behaviour, when 'id' is 1000 the pointer arithmetic 'eqn_menus+id' is out of bounds. [pointerOutOfBoundsCond] plus42-upstream-1.5.4/common/core_equations.cc:369:12: note: Assuming that condition 'id>=1000' is not redundant plus42-upstream-1.5.4/common/core_equations.cc:370:26: note: Pointer arithmetic overflow Explanation: In `getmenu`, `eqn_menus + id - 1000` parses as `(eqn_menus + id) - 1000`. For any `id >= 1000`, the intermediate pointer `eqn_menus + id` lies far past the end of the small `eqn_menus` array, which is technically undefined behaviour. So both the old warning and the new one are true positives on the same line. The old warning derived `id = 1023` through an inter-procedural path that assumed two conditions were false. The new one derives `id = 1000` directly from the `id >= 1000` guard. The user still gets a correct portability warning at the same location, only with a different, slightly less detailed path, so the change is essentially neutral. ---- 37 / 39 ---- Verdict: ACCEPTABLE REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/p/pytorch/pytorch_2.15.0+dfsg.orig.tar.xz Result: main pytorch-v2.15.0/third_party/miniz-3.0.2/miniz.c:2519:19: warning: Uninitialized variable: r->m_num_bits [uninitvar] pytorch-v2.15.0/third_party/miniz-3.0.2/miniz.c:3001:5: note: Assuming condition is true pytorch-v2.15.0/third_party/miniz-3.0.2/miniz.c:3006:48: note: Calling function 'tinfl_decompress', 1st argument '&decomp' value is pytorch-v2.15.0/third_party/miniz-3.0.2/miniz.c:2506:55: note: Assuming condition is false pytorch-v2.15.0/third_party/miniz-3.0.2/miniz.c:2519:19: note: Uninitialized variable: r->m_num_bits Explanation: In miniz, `tinfl_init()` only sets `r->m_state = 0`. `tinfl_decompress()` then copies `r->m_num_bits`, `m_bit_buf` and other members into locals at line 2519 and later, before `TINFL_CR_BEGIN` dispatches on `m_state`. So with a freshly initialized stack `tinfl_decompressor`, line 2519 really does read an uninitialized member. The copied value is overwritten at line 2527 before it is used, so it is harmless in practice, but the uninitvar report is technically correct. The PR only narrows condition splitting and program-memory condition parsing; it does not intentionally change uninit tracking, so losing this warning looks like a side effect. That makes it a lost, low-value true positive. ---- 38 / 39 ---- Verdict: ACCEPTABLE REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/t/tea/tea_63.3.1.orig.tar.gz Result: main psemiletov-tea-qt-9599b12/src/miniz.h:4379:17: warning: Uninitialized variable: r->m_num_bits [uninitvar] psemiletov-tea-qt-9599b12/src/miniz.h:4815:3: note: Assuming condition is true psemiletov-tea-qt-9599b12/src/miniz.h:4820:9: note: Calling function 'tinfl_decompress', 1st argument '&decomp' value is psemiletov-tea-qt-9599b12/src/miniz.h:4366:53: note: Assuming condition is false psemiletov-tea-qt-9599b12/src/miniz.h:4379:17: note: Uninitialized variable: r->m_num_bits Explanation: The caller declares a local `tinfl_decompressor decomp`. `tinfl_init()` only sets `m_state = 0`, and then `tinfl_decompress(&decomp, ...)` is called. At line 4379 the function copies `r->m_num_bits` (plus `m_bit_buf`, `m_dist`, etc.) into locals. Those members were never initialized, so the read of an indeterminate value that main reported really happens. It is fairly harmless in practice: `TINFL_CR_BEGIN` switches on `m_state == 0`, and line 4387 resets all these locals before use. Still, it is a technically true uninitvar finding. The PR changes conditional splitting and the condition-change check, which do not obviously make this read safe, so the warning seems lost as a side effect. That makes it a removed (borderline) true positive rather than a fixed false positive. ---- 39 / 39 ---- Verdict: ACCEPTABLE REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/v/vkquake/vkquake_1.37.0+dfsg.orig.tar.xz Result: main Novum-vkQuake-bb27a55/Quake/miniz.c:2464:23: warning: Uninitialized variable: r->m_num_bits [uninitvar] Novum-vkQuake-bb27a55/Quake/miniz.c:2924:9: note: Assuming condition is true Novum-vkQuake-bb27a55/Quake/miniz.c:2928:52: note: Calling function 'tinfl_decompress', 1st argument '&decomp' value is Novum-vkQuake-bb27a55/Quake/miniz.c:2451:59: note: Assuming condition is false Novum-vkQuake-bb27a55/Quake/miniz.c:2464:23: note: Uninitialized variable: r->m_num_bits Explanation: In miniz, `tinfl_init()` only sets `m_state`. On the first call, `tinfl_decompress` copies `r->m_num_bits`, `m_bit_buf`, `m_dist` and other fields into locals at line 2464 and below, before the coroutine (`TINFL_CR_BEGIN`, state 0) resets them. So an uninitialized struct member really is read, although the value is overwritten before it is used. The warning is technically correct, even if it has little practical impact. The PR targets conditional value splitting and the `changed` check in `programMemoryParseCondition`, not uninitialized-variable tracking. Losing this report looks like a side effect that removes a technically valid warning. The caller code at lines 2924–2928 is not shown, so confidence is low.