{ "tokens": { "input": 157481, "cache_read": 3157480, "cache_write": 789370, "output": 25417 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/a/alsa-utils/alsa-utils_1.2.16.orig.tar.bz2", "main alsa-utils-1.2.16/bat/bat.c:88:33: style: Condition 'err!=0' is always true [knownConditionTrueFalse]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "Both main and the PR report the same warning at the same location; only the notes changed. The PR adds the note \"Assignment 'err=-errno', assigned value is never 0\". The warning is a false positive either way: `strtof` does not clear `errno`, so `err = -errno` can be 0 and `err != 0` is not always true. The PR neither removes nor introduces this false positive. The new note explains Cppcheck's (incorrect) reasoning but does not change the substance, so users see no meaningful difference." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/c/cpp-httplib/cpp-httplib_0.64.0+ds.orig.tar.xz", "your yhirose-cpp-httplib-24e58ce/httplib.h:13126:32: warning: Either the condition 'prefix_bits>128' is redundant or 'i' can have the value 16. Expression 'net[i]' causes access out of bounds. [containerOutOfBounds]\n yhirose-cpp-httplib-24e58ce/httplib.h:13115:38: note: Assuming that condition 'prefix_bits>128' is not redundant\n yhirose-cpp-httplib-24e58ce/httplib.h:13117:32: note: Assignment 'full_bytes=prefix_bits/8', assigned value is 16\n yhirose-cpp-httplib-24e58ce/httplib.h:13119:22: note: Assuming condition is false\n yhirose-cpp-httplib-24e58ce/httplib.h:13124:10: note: i is assigned 'static_cast(full_bytes)' here.\n yhirose-cpp-httplib-24e58ce/httplib.h:13126:32: note: Access out of bounds" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "The warning is a false positive both before and after the PR. With prefix_bits == 128, full_bytes is 16 and rem_bits is 0, so the function returns at `if (rem_bits == 0) return true;` and never evaluates `net[16]`. The PR only drops the 'Assuming condition is false' note at line 13123 from the error path. That is probably the new addErrorPath filtering, because `rem_bits == 0` does not mention the tracked value. The note was part of an already infeasible path, so removing it neither fixes nor worsens the false positive. The warning text, location and severity are unchanged, so this does not matter to users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/d/daligner/daligner_1.0+git20240119.335105d.orig.tar.xz", "your daligner-1.0+git20240119.335105d/filter.c:1469:23: warning: Either the condition 'tbuf->trace==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck]\n daligner-1.0+git20240119.335105d/filter.c:1465:23: note: Assuming that condition 'tbuf->trace==NULL' is not redundant\n daligner-1.0+git20240119.335105d/filter.c:1469:23: note: Null pointer addition" ], "verdict": { "verdict": "neutral", "confidence": "low", "explanation": "Both versions report the same nullPointerArithmeticRedundantCheck at line 1469 with the same main text. The only difference is in the error-path notes. The PR's new filter in addErrorPath() drops the note 'Assuming condition is true' for `tbuf->top + len >= tbuf->max` at line 1462, because that condition does not mention `tbuf->trace`. That note did help show how the NULL check at line 1465 is reached: the check sits inside that if-block. So the path is slightly less informative, but the remaining notes are still correct. Whether the warning itself is valid depends on whether `Clean_Exit` returns, and that is unchanged by the PR. Overall this is a cosmetic change to the error path with no real effect on users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/d/dasm/dasm_2.20.15~20201109+really2.20.14.1.orig.tar.gz", "your dasm-2.20.14.1/src/ops.c:1169:24: style: Condition 'str[i]==0' is always false [knownConditionTrueFalse]\n dasm-2.20.14.1/src/ops.c:1167:19: note: Assuming that condition 'str[i]' is not redundant\n dasm-2.20.14.1/src/ops.c:1169:24: note: Condition 'str[i]==0' is always false" ], "verdict": { "verdict": "neutral", "confidence": "high", "explanation": "Same warning at the same location with the same message in main and the PR. The diff shows it only because the note lines differ, now that the PR records the assumed condition `str[i]` from line 1167. Inside the loop body, `str[i]` is nonzero because the while condition at 1167 just checked it, so `str[i]==0` is indeed always false. It is a true positive either way, and the added note correctly points at the loop condition." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/d/dte/dte_1.10.orig.tar.gz", "main dte-1.10/src/commands.c:835:5: warning: Either the condition '!args' is redundant or there is possible null pointer dereference: args. [nullPointerRedundantCheck]\n dte-1.10/src/commands.c:834:5: note: Assuming that condition '!args' is not redundant\n dte-1.10/src/commands.c:834:5: note: Assuming condition is true\n dte-1.10/src/commands.c:835:5: note: Null pointer dereference" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "This is not a real removal. The same nullPointerRedundantCheck warning at commands.c:835 is still reported on the 'your' side. The only difference is that the error path no longer has the second note 'Assuming condition is true' at line 834. That note just repeated the 'Assuming that condition '!args' is not redundant' note on the same line, so the warning, its location and its meaning are unchanged. Whether the warning is valid (BUG_ON(!args) before args[0]) is the same on both sides." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/d/duckdb/duckdb_2.0.0+dfsg2.orig.tar.gz", "main duckdb-2.0.0+dfsg2/src/common/types/timestamp.cpp:300:10: style: Condition 'colons_used' is always true [knownConditionTrueFalse]\n duckdb-2.0.0+dfsg2/src/common/types/timestamp.cpp:290:23: note: Assuming that condition '!colons_used' is not redundant\n duckdb-2.0.0+dfsg2/src/common/types/timestamp.cpp:297:28: note: Assuming condition is true\n duckdb-2.0.0+dfsg2/src/common/types/timestamp.cpp:300:10: note: Condition 'colons_used' is always true" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The warning is the same in both runs and is a true positive. Line 290 returns whenever `!colons_used`, so `colons_used` is always true at line 300. The only change is in the error path. Main also emitted an 'Assuming condition is true' note for the unrelated condition at line 297 (`curpos + minlen > len || !CharacterIsDigit(...)`), which has no bearing on `colons_used`. The PR's `addErrorPath` change stops recording assumptions about conditions that do not reference the tracked value. The path now points only at the relevant condition on line 290, so the message is more accurate." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/e/exactimage/exactimage_1.2.1.orig.tar.bz2", "main exact-image-1.2.1/image/Colorspace.cc:956:19: style: Condition 'gmap[i]>>8!=ref' is always false [knownConditionTrueFalse]\n exact-image-1.2.1/image/Colorspace.cc:955:19: note: Assuming that condition 'rmap[i]>>8!=ref' is not redundant\n exact-image-1.2.1/image/Colorspace.cc:949:24: note: Assuming that condition 'rmap[i]>>8!=gmap[i]>>8' is not redundant\n exact-image-1.2.1/image/Colorspace.cc:953:16: note: Assuming condition is true\n exact-image-1.2.1/image/Colorspace.cc:956:19: note: Condition 'gmap[i]>>8!=ref' is always false" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The warning itself is unchanged and correct. In the else-branch, `rmap[i]>>8 == gmap[i]>>8 == bmap[i]>>8`, so once `rmap[i]>>8 != ref` is false, `gmap[i]>>8 != ref` must also be false. The only difference is that the note 'Assuming condition is true' at line 953 (`else if (is_ordered_gray)`) is gone. That condition has nothing to do with the gmap/rmap values the warning relies on. The PR now filters error-path notes from unrelated conditions, so the explanation is slightly more accurate." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/f/funtools/funtools_1.4.8.orig.tar.gz", "your funtools-1.4.8/wcs/hget.c:1663:49: style: Condition 'cstr=='d'' is always false [knownConditionTrueFalse]\n funtools-1.4.8/wcs/hget.c:1663:23: note: Assuming that condition 'cstr=='d'' is not redundant\n funtools-1.4.8/wcs/hget.c:1663:49: note: Condition 'cstr=='d'' is always false" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Line 1663 tests `cstr=='d'` twice in the same `||` chain. The second test (column 49) can only run when the first (column 23) was false, so it is always false. The warning is a true positive and it is reported both before and after the PR. The only change is that the PR adds error-path notes. The note points to the earlier `cstr=='d'` at column 23 as the condition being assumed, which is exactly why the duplicate is always false. The message is now more informative and still correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/g/glulxe/glulxe_0.6.1.orig.tar.gz", "your glulxe/string.c:386:42: style: Condition 'otype<=0xFF' is always true [knownConditionTrueFalse]\n glulxe/string.c:381:23: note: Assignment 'otype=(verify_address(oaddr,1),(unsigned char)(((unsigned char*)(memmap+(oaddr)))[0]))', assigned value is less than 256\n glulxe/string.c:382:19: note: Assuming condition is true\n glulxe/string.c:386:42: note: Condition 'otype<=0xFF' is always true" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "`otype` is an `int` assigned from `Mem1(oaddr)`, which expands to a cast to `(unsigned char)`. Its value is therefore always in 0..255, so `otype <= 0xFF` can never be false. The PR adds value bounds for integral casts, which lets Cppcheck prove this; the warning is factually correct (a true positive). The upper check is redundant, though harmless as a readability range check. One blemish: the note 'Assuming condition is true' points at the unrelated `!substring` condition." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/g/gpac/gpac_1.0.1+dfsg1.orig.tar.xz", "main gpac-1.0.1/src/media_tools/media_import.c:775:50: style: Comparing expression of type 'char' against value 187. Condition is always false. [compareValueOutOfTypeRangeError]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The code compares `line[1]` with `(char)(0xBB)`. The cast turns the constant into the char value of 0xBB (-69 on a signed-char platform), so the comparison can be true when the byte is 0xBB. Main read the value as 187 and wrongly reported that a char can never equal 187. That was a false positive. The PR converts cast values to their destination type, so the warning is gone." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/g/gpac/gpac_1.0.1+dfsg1.orig.tar.xz", "your gpac-1.0.1/src/isomedia/stbl_write.c:2101:6: style: Condition '!newEnt' is always false [knownConditionTrueFalse]\n gpac-1.0.1/src/isomedia/stbl_write.c:2100:11: note: Assignment 'newEnt=&the_stsc->entries[the_stsc->nb_entries]', assigned value is never 0\n gpac-1.0.1/src/isomedia/stbl_write.c:2101:6: note: Condition '!newEnt' is always false" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "The same warning, `Condition '!newEnt' is always false`, is reported by both main and the PR at the same location. `newEnt = &the_stsc->entries[nb_entries]` is an element address, so the null check is redundant and the warning is a legitimate style finding. Any difference lies only in the attached notes, which in the PR output correctly point to the assignment, so users see no meaningful change." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/g/gss/gss_1.0.4.orig.tar.gz", "your gss-1.0.4/src/gl/reallocarray.c:31:7: warning: Expression '-9223372036854775807LL-1LL' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion]" ], "verdict": { "verdict": "regression", "confidence": "high", "explanation": "The warning comes from gnulib's INT_MULTIPLY_WRAPV macro in intprops.h. Expressions such as `(1?0:((1?0:(nmemb))+(-9223372036854775807LL-1LL)))` are type-deduction tricks. The `+ LLONG_MIN` sits in the never-evaluated false branch of `1 ? 0 : ...`, or inside sizeof, so no negative value is ever converted and used in an unsigned calculation at runtime. The conversion is intentional and harmless. The new signConversion warning is a false positive, part of a group of new noisy warnings on this macro that this PR introduced." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/g/gwyddion/gwyddion_3.12.orig.tar.xz", "main gwyddion-3.12/libgwyddion/filters.c:444:32: style: Condition 'm' is always true [knownConditionTrueFalse]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The warning is a true positive in both versions. Line 444 sits inside 'if (m)' (line 443), so the ternary condition 'm' on line 444 is always true. Only the message changed: the new version adds error-path notes ('Assuming that condition 'm' is not redundant' at line 443) that point to why the condition is always true. The same kind of change shows up in the other lines of this package. A more informative message is a small improvement." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/h/httpry/httpry_0.1.8.orig.tar.gz", "main httpry-httpry-0.1.8/httpry.c:763:28: style: Condition 'loop_status==-1' is always false [knownConditionTrueFalse]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The warning is the same in both runs: line 763's 'loop_status==-1' is really always false, because LOG_DIE exits when it is -1. Only the message changed. The new version adds an error path pointing to line 754, where the earlier check makes this one redundant. That extra context makes the warning more accurate and helpful to users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/j/janet/janet_1.43.0.orig.tar.gz", "main janet-1.43.0/src/core/struct.c:34:39: warning: Either the condition 'pair_count>2147483647' is redundant or there is signed integer overflow for expression '2*count'. [integerOverflowCond]\n janet-1.43.0/src/core/struct.c:238:20: note: Assuming that condition 'pair_count>2147483647' is not redundant\n janet-1.43.0/src/core/struct.c:242:41: note: Calling function 'janet_struct_begin', 1st argument '(int32_t)pair_count' value is 2147483647\n janet-1.43.0/src/core/struct.c:34:39: note: Integer overflow" ], "verdict": { "verdict": "acceptable regression", "confidence": "low", "explanation": "`janet_struct_begin` computes `2 * count` on an `int32_t`. The next line, `if (capacity < 0) ...`, shows the author expects that product to overflow, but signed overflow is undefined behaviour. The caller around line 238 only rejects `pair_count > INT32_MAX`, so `count == INT32_MAX` is still allowed and `2*count` would overflow. Main's integerOverflowCond warning therefore looks like a true positive. The PR reworks how range facts pass through narrowing casts and drops the value 2147483647 for `(int32_t)pair_count`, so the warning disappears. That is a lost true positive, i.e. a new false negative. Confidence is low because the code around line 238 (the type and origin of `pair_count`) is not shown, and how large it can get in practice cannot be checked." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kmplot/kmplot_26.04.0.orig.tar.xz", "main kmplot-26.04.0/kmplot/maindlg.cpp:499:13: style: Condition '!m_modified' is always false [knownConditionTrueFalse]\n kmplot-26.04.0/kmplot/maindlg.cpp:494:9: note: Assuming that condition '!m_modified' is not redundant\n kmplot-26.04.0/kmplot/maindlg.cpp:496:22: note: Assuming condition is false\n kmplot-26.04.0/kmplot/maindlg.cpp:499:13: note: Condition '!m_modified' is always false" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "Both versions report the same correct warning. Line 494 returns early when `!m_modified`, so `!m_modified` at line 499 is always false. The PR only drops the error-path note 'Assuming condition is false' at line 496 (`url().isEmpty()`). That condition has nothing to do with `m_modified`, so the note was misleading. The new `addErrorPath` filter keeps only conditions related to the tracked value, which makes the message more accurate." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kmplot/kmplot_26.04.0.orig.tar.xz", "your kmplot-26.04.0/kmplot/maindlg.cpp:499:13: style: Condition '!m_modified' is always false [knownConditionTrueFalse]\n kmplot-26.04.0/kmplot/maindlg.cpp:494:9: note: Assuming that condition '!m_modified' is not redundant\n kmplot-26.04.0/kmplot/maindlg.cpp:499:13: note: Condition '!m_modified' is always false" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The warning itself is still reported and is still correct. At line 494 the function returns when '!m_modified' is true, so at line 499 m_modified is true and '!m_modified' is always false. The only change is in the error path: the PR dropped the note 'Assuming condition is false' at line 496 (url().isEmpty()). That condition has nothing to do with m_modified, and the PR's addErrorPath change filters out unrelated conditions on purpose. The remaining path explains the warning correctly, so the message is now more accurate." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kmplot/kmplot_26.04.0.orig.tar.xz", "your kmplot-26.04.0/kmplot/view.cpp:3626:36: style: Condition 'm_currentPlot.functionID()!=-1' is always true [knownConditionTrueFalse]\n kmplot-26.04.0/kmplot/view.cpp:3618:36: note: Assuming that condition 'm_currentPlot.functionID()==-1' is not redundant\n kmplot-26.04.0/kmplot/view.cpp:3626:36: note: Condition 'm_currentPlot.functionID()!=-1' is always true" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Both versions report the same warning at line 3626; only the notes differ. The function returns early at line 3618 when `functionID() == -1`, so Cppcheck concludes `functionID() != -1` is always true at line 3626. Main gave no error path. The PR adds a note pointing to line 3618, which is the condition the conclusion actually rests on. Whether the warning is a true positive depends on whether `removeFunction()` can reset `m_currentPlot`, which the PR does not change. The message is simply better explained." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/l/looking-glass/looking-glass_0+b7+ds1.orig.tar.xz", "main looking-glass-B7/module/test.c:106:21: style: Comparing expression of type 'char' against value 170. Condition is always true. [compareValueOutOfTypeRangeError]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "Line 106 compares `bytes[i] != (char) 0xAA`. Because of the cast, the constant has type char. On a signed-char platform it is -86, which a char can hold; on an unsigned-char platform it is 170, which a char can also hold. Both operands are char, so the condition can be true or false at runtime. Main's warning that 'char' is compared against 170 and the condition is always true ignored the cast and is a false positive. The PR's rewritten range check removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/l/looking-glass/looking-glass_0+b7+ds1.orig.tar.xz", "your looking-glass-B7/repos/cimgui/imgui/imgui_tables.cpp:934:37: style: Condition 'column->Flags&ImGuiTableColumnFlags_WidthFixed' is always true [knownConditionTrueFalse]\n looking-glass-B7/repos/cimgui/imgui/imgui_tables.cpp:923:27: note: Assuming that condition 'column->Flags&ImGuiTableColumnFlags_WidthFixed' is not redundant\n looking-glass-B7/repos/cimgui/imgui/imgui_tables.cpp:934:37: note: Condition 'column->Flags&ImGuiTableColumnFlags_WidthFixed' is always true" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Line 934 re-tests `column->Flags & ImGuiTableColumnFlags_WidthFixed` inside the `if` at line 923, which already tested the same flag. The flags are not changed in between, so the condition really is always true and the warning is a true positive. Both versions report it. The PR's version adds notes pointing to the condition at line 923 as the reason, which makes the message more accurate and easier to follow." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libf/libfm-qt/libfm-qt_2.4.0.orig.tar.xz", "main libfm-qt-2.4.0/src/fm-search.c:285:76: style: Condition 'search->content_ci' is always true [knownConditionTrueFalse]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Line 285 checks `search->content_ci` again inside `if(search->content_ci)`, so the warning is a true positive in both versions. The 'main' line has no notes. The matching 'your' line has the same message plus notes ('Assuming that condition ... is not redundant', 'Condition ... is always true'). The PR stops the condition note from being dropped (the addErrorPath change), so the warning now explains itself better. This is a more informative message, not a removed warning." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libf/libfm-qt/libfm-qt_2.4.0.orig.tar.xz", "main libfm-qt-2.4.0/src/proxyfoldermodel.cpp:70:16: style: Condition 'newSrcModel' is always true [knownConditionTrueFalse]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "Both main and the PR report the same warning at the same location. Inside `if(model)`, `newSrcModel = static_cast(model)` cannot be null, so `if(newSrcModel)` is always true and the warning is a true positive. The diff only shows a main/your pair, which most likely means the attached notes changed. The PR's notes are accurate: they cite the `model` condition at line 60 and the never-zero assignment at line 69. The warning itself is unchanged, so this does not matter to users either way." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libm/libmobi/libmobi_0.12+dfsg.orig.tar.xz", "your libmobi-0.12/src/miniz.c:4244:17: style: Condition 'pZip->m_pState' is always true [knownConditionTrueFalse]\n libmobi-0.12/src/miniz.c:4241:25: note: Assuming that condition '!pZip->m_pState' is not redundant\n libmobi-0.12/src/miniz.c:4244:17: note: Condition 'pZip->m_pState' is always true" ], "verdict": { "verdict": "improvement", "confidence": "low", "explanation": "The warning itself is a true positive. Line 4241 returns early when `!pZip->m_pState`, so `if (pZip->m_pState)` at line 4244 is always true. Only the warning's notes changed. The new notes point at exactly the right condition, `!pZip->m_pState` at 4241, and then the redundant check. The PR changes `addErrorPath` to drop assumptions about conditions unrelated to the tracked value, so main's error path probably carried a less relevant note. Main's notes are not shown, so this cannot be confirmed; the new message is at least accurate." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libn/libncursesada/libncursesada_6.6.20251230.orig.tar.gz", "main AdaCurses-20251230/gen/gen.c:90:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [ctunullpointerOutOfResources]\n AdaCurses-20251230/gen/gen.c:204:17: note: Assuming allocation function fails\n AdaCurses-20251230/gen/gen.c:204:17: note: Assignment 'fp=fopen(argv[2],\"wb\")', assigned value is 0\n AdaCurses-20251230/gen/gen.c:202:12: note: Assuming condition is true\n AdaCurses-20251230/gen/gen.c:244:3: note: Calling function print_long_val, 1st argument is null\n AdaCurses-20251230/gen/gen.c:90:11: note: Dereferencing argument fp that is null" ], "verdict": { "verdict": "acceptable regression", "confidence": "medium", "explanation": "In main(), `fp = fopen(argv[2], \"wb\")` at line 204 appears to be used without a NULL check. `fp` is then passed to `print_long_val()`, which calls `fprintf(fp, ...)` at line 90. If fopen fails, this dereferences NULL, so the ctunullpointerOutOfResources warning is a true positive of the 'resource allocation may fail' kind. The PR removes this warning along with every other nullPointerOutOfResources warning on the same fopen result, including the direct uses at lines 221\u2013260, so it looks like a lost true positive rather than a fixed false positive. Confidence is medium because main() itself is not shown." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libr/librabbitmq/librabbitmq_0.18.1.orig.tar.gz", "main alanxz-rabbitmq-c-0e59bd0/librabbitmq/amqp_api.c:226:19: style: Condition 'remaining==0' is always false [knownConditionTrueFalse]\n alanxz-rabbitmq-c-0e59bd0/librabbitmq/amqp_api.c:223:22: note: Assuming that condition 'body_offset 0, so `if (remaining == 0)` really is always false. The removed knownConditionTrueFalse warning was a true positive (redundant defensive check). The PR's more conservative handling of unsigned arithmetic that might wrap (dropping range values for unsigned '-' results in infer/minUnsignedValue) now loses this fact. That is a new false negative, not a false positive fix." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libs/libsdl3-ttf/libsdl3-ttf_3.2.2+ds.orig.tar.xz", "main SDL3_ttf-3.2.2/src/SDL_ttf.c:2524:17: style: Condition 'metrics' is always true [knownConditionTrueFalse]" ], "verdict": { "verdict": "improvement", "confidence": "low", "explanation": "The warning is a true positive in both versions: `metrics = &slot->metrics` is the address of a struct member, so it can never be null and `if (metrics)` is always true. The warning text is identical in main and your, so the diff must come from the attached error-path notes. The new notes are accurate and minimal: the assignment to `&slot->metrics`, then the condition. Main's notes are not shown. The PR changes `addErrorPath` to drop assumption notes about conditions that do not mention the tracked value. Main most likely carried such a note for the unrelated `if (cached->sz_left == 0 && ...)` on line 2522. Dropping it makes the explanation more accurate. Confidence is low because main's notes are not visible." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/mdbtools/mdbtools_1.0.1.orig.tar.gz", "your mdbtools-1.0.1/src/odbc/connectparams.c:136:11: style: Condition 'p' is always true [knownConditionTrueFalse]\n mdbtools-1.0.1/src/odbc/connectparams.c:129:11: note: Assuming that condition 'p' is not redundant\n mdbtools-1.0.1/src/odbc/connectparams.c:131:11: note: Assuming condition is true\n mdbtools-1.0.1/src/odbc/connectparams.c:136:11: note: Condition 'p' is always true" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The same true positive is reported in both runs: inside 'while (p)', 'p' is not changed before line 136, so 'if (p)' there is always true. Only the note chain changed. The new chain cites line 131 'Assuming condition is true' as the reason the condition at 136 is always true. That is misleading: 131 is a redundant check of the same kind, not the real source. The real reason is the loop condition at line 129. Main reported the warning without this extra note. The added note does not help and points at a redundant check instead of the cause, so the message is slightly less accurate." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/n/ndpi/ndpi_4.2.orig.tar.gz", "main nDPI-4.2/src/lib/protocols/eaq.c:49:7: style: Condition '!packet' is always false [knownConditionTrueFalse]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "`packet = &ndpi_struct->packet` is the address of a struct member, so it is never null and `!packet` is always false. The warning is a true positive in both runs. The PR keeps the warning and adds a note explaining that the assigned value is never 0, so the message now has a useful error path. This is a slight improvement in message quality." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/n/network-manager/network-manager_1.58.1.orig.tar.bz2", "your NetworkManager-1.58.1/src/libnm-systemd-shared/src/fundamental/sha256-fundamental.c:192:22: warning:inconclusive: Either the condition '!ctx' is redundant or there is possible null pointer dereference: ctx. [nullPointerRedundantCheck]\n NetworkManager-1.58.1/src/libnm-systemd-shared/src/fundamental/sha256-fundamental.c:187:9: note: Assuming that condition '!ctx' is not redundant\n NetworkManager-1.58.1/src/libnm-systemd-shared/src/fundamental/sha256-fundamental.c:192:22: note: Null pointer dereference" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The warning is reported by both versions. Only its error path changed: the PR dropped the note 'Assuming condition is true' at line 187. That note was misleading. `assert(ctx)` does not branch so that execution goes on with ctx being null. The only real assumption behind the inconclusive warning is that the check is not redundant, and that note is still there. This matches the PR change in addErrorPath, which no longer records assumptions about conditions the tracked value does not depend on. The message is now a bit cleaner and more accurate, so this is a minor improvement." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/n/nfdump/nfdump_1.7.10.orig.tar.gz", "main phaag-nfdump-9e47b47/src/libnffile/output_short.c:98:5: warning: %llu in format string (no. 3) requires 'unsigned long long' but the argument type is 'signed long long'. [invalidPrintfArgType_uint]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "Argument no. 3 is `genericFlow->msecFirst % 1000LL`. In nfdump, `msecFirst` is a `uint64_t`, which is `unsigned long` on LP64. By the usual arithmetic conversions, `unsigned long % long long` has type `unsigned long long`: `long long` has higher rank but cannot represent every `unsigned long` value, so the unsigned counterpart is used. Main inferred `signed long long` from the old rank-only logic and reported a mismatch with `%llu`, which was a false positive. The PR's new `getCommonIntegralType` models this rule correctly, so removing the warning is an improvement." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/p/procserv/procserv_2.8.0.orig.tar.gz", "main procServ-2.8.0/libtelnet.c:1339:20: style: Comparing expression of type 'const char' against value 255. Condition is always false. [compareValueOutOfTypeRangeError]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`buffer[i] == (char)TELNET_IAC` casts 255 to char. On a signed-char platform that gives -1, so the comparison is true whenever the byte is 0xFF. This is the standard IAC escape idiom. Main's claim that the condition is always false is a false positive: it used the uncast value 255 instead of the value after the (char) conversion. The PR fixes cast value truncation and type-range checking, which removes the false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/p/python-memray/python-memray_1.20.0+dfsg.orig.tar.xz", "main bloomberg-memray-bbfeb96/src/vendor/libbacktrace/dwarf.c:3919:14: style: Condition 'pc+1==0' is always false [knownConditionTrueFalse]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`pc` is a `uintptr_t`. `pc + 1 == 0` is true when pc == UINTPTR_MAX, because unsigned arithmetic wraps. That is exactly the sentinel case the comment describes. The condition is not always false, so main's warning was a false positive, probably from treating the unsigned addition as non-wrapping. The PR adds wrap-aware handling for unsigned arithmetic (isUnsignedArithmeticNoWrap, minUnsignedValue guards, mayWrap in infer), which removes the false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/p/pytsk/pytsk_20250801.orig.tar.gz", "main pytsk-20250801/talloc/talloc.c:1117:7: warning: Either the condition 'tc' is redundant or there is possible null pointer dereference: tc. [nullPointerRedundantCheck]\n pytsk-20250801/talloc/talloc.c:1116:3: note: Assuming that condition 'tc' is not redundant\n pytsk-20250801/talloc/talloc.c:1116:3: note: Assuming condition is true\n pytsk-20250801/talloc/talloc.c:1117:7: note: Null pointer dereference" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "The nullPointerRedundantCheck warning at line 1117 is still reported at the same location with the same message. The only difference is that the error path lost the extra note 'Assuming condition is true' at 1116:3. That note sat at the same location as 'Assuming that condition 'tc' is not redundant', which is still there, so it added little. The change comes from the PR's addErrorPath filtering and only trims a redundant note; the diagnostic itself does not change in substance." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/r/r-cran-rlang/r-cran-rlang_1.3.0.orig.tar.gz", "main rlang/src/internal/env-binding.c:267:9: style: Condition 'n' is always true [knownConditionTrueFalse]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR keeps the warning and only changes its text. In main the warning had no notes; the new version adds notes pointing to the earlier `if (!n) return` at line 262. The warning itself is a true positive: after the early return when n is 0, `n` is always nonzero at line 267, so the `n &&` part is redundant. The added notes explain why the condition is always true, which makes the message more useful." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/r/redland/redland_1.0.17.orig.tar.gz", "your redland-1.0.17/libltdl/ltdl.c:1669:12: style: Condition 'filename' is always true [knownConditionTrueFalse]\n redland-1.0.17/libltdl/ltdl.c:1657:7: note: Assuming that condition '!filename' is not redundant\n redland-1.0.17/libltdl/ltdl.c:1669:12: note: Condition 'filename' is always true" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "The same warning, 'filename' is always true at line 1670 (reported at 1669:12 because of how macros are expanded), appears in both main and your. Only the diff key changed, apparently because of the notes or the path. In the else branch, '!filename' was false, so filename is non-null and the warning is a true positive in both versions. Nothing changes for users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/r/renderdoc/renderdoc_1.24+dfsg.orig.tar.xz", "main renderdoc-1.24/renderdoc/3rdparty/compressonator/BC1_Encode_kernel.cpp:348:30: error: Signed integer overflow for expression '2*xstep'. [integerOverflow]\n renderdoc-1.24/renderdoc/3rdparty/compressonator/BC1_Encode_kernel.cpp:337:48: note: Assignment 'xstep=-1', assigned value is -1\n renderdoc-1.24/renderdoc/3rdparty/compressonator/BC1_Encode_kernel.cpp:348:30: note: Integer overflow" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`xstep` is an `int` that takes the values 1 or -1. `2 * xstep` is therefore 2 or -2, and `3 * xstep` is 3 or -3, so no signed overflow is possible. The integerOverflow error reported by main for `2*xstep` with `xstep=-1` was a false positive. The PR reworks integral value types, promotions and value conversion, which plausibly fixes how this expression was evaluated. Removing the warning is an improvement." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/samba/samba_4.25.1+dfsg.orig.tar.xz", "main samba-4.25.1/source3/rpc_server/rpc_worker_internal.c:562:54: style: Comparing expression of type 'unsigned int' against value 4294967295. Condition is always false. [compareValueOutOfTypeRangeError]" ], "verdict": { "verdict": "acceptable regression", "confidence": "medium", "explanation": "`(unsigned)server_index > UINT32_MAX` compares a 32-bit `unsigned int` with its own maximum value 4294967295. No `unsigned int` can be greater than that, so the condition really is always false and the removed compareValueOutOfTypeRangeError was a true positive. The PR now skips this check when the comparison token already has a known value and the constant is within the type's range, expecting knownConditionTrueFalse to report it instead. No such replacement warning for line 562 appears in the lines shown, so this looks like a lost true positive, i.e. a new false negative." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/savvy/savvy_2.1.0.orig.tar.gz", "your savvy-2.1.0/src/savvy/m3vcf_reader.cpp:40:22: error: Invalid output.put() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg]" ], "verdict": { "verdict": "regression", "confidence": "high", "explanation": "`output.put((char)255)` is the usual way to write the byte 0xFF to a stream. `std::ostream::put` takes any `char`, so this code is correct. The PR now folds `(char)255` to -1 on a signed-char platform, which is the right value. That -1 then fails the library's '0:' range for `put()`, producing an invalidFunctionArg error. This is a new false positive: there is no actual misuse." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/scorched3d/scorched3d_44+dfsg.orig.tar.xz", "your scorched/src/client/dialogs/PlayerInGameDialog.cpp:147:6: style: Condition 'tank' is always true [knownConditionTrueFalse]\n scorched/src/client/dialogs/PlayerInGameDialog.cpp:98:6: note: Assuming that condition '!tank' is not redundant\n scorched/src/client/dialogs/PlayerInGameDialog.cpp:147:6: note: Condition 'tank' is always true" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Both versions report the same warning at line 147. Only the error path changed: it now points to the '!tank' check at line 98, which is most likely an early return when tank is null. That line is not in the shown source, so this is inferred. The warning itself is a true positive, because tank is already dereferenced at line 137 via tank->getPlayerId() before the `if (tank && ...)` check. The new note names the condition on the same variable that makes 'tank' non-null, which makes the diagnostic easier to understand." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/service-wrapper-java/service-wrapper-java_3.5.51.orig.tar.gz", "main wrapper_3.5.51_src/src/c/wrapper_file.c:221:91: style: Comparing expression of type 'char' against value 191. Condition is always false. [compareValueOutOfTypeRangeError]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The code compares `bufferMB[2] == (char)0xbf`. Both operands are char, and the cast converts 0xbf to the char value -65 on a signed-char platform (or 191 on an unsigned one). In either case the comparison can be true, so this is the usual BOM check and it works. The old warning was a false positive: main used the raw value 191 and ignored the (char) cast. The PR makes the conversion of the cast value correct, so removing the warning is an improvement." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/snap7/snap7_1.4.2+dfsg.orig.tar.xz", "main snap7-full-1.4.2/src/sys/snap_tcpsrvr.cpp:278:42: style: Condition 'ClientsCount>0' is always true [knownConditionTrueFalse]\n snap7-full-1.4.2/src/sys/snap_tcpsrvr.cpp:268:22: note: Assuming that condition 'ClientsCount>0' is not redundant\n snap7-full-1.4.2/src/sys/snap_tcpsrvr.cpp:272:28: note: Assuming condition is false\n snap7-full-1.4.2/src/sys/snap_tcpsrvr.cpp:278:42: note: Condition 'ClientsCount>0' is always true" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The warning is still reported at the same location; only its error path changed. Main included the note 'Assuming condition is false' at line 272, which points at `Workers[c] != 0`. That condition has nothing to do with `ClientsCount`. The PR's addErrorPath change stops recording assumptions about conditions that do not reference the tracked value, so this misleading note is gone. Whether the warning itself is valid (ClientsCount is probably changed by worker threads) is not affected, since both versions report it. The message is now more accurate." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/tenace/tenace_0.19.orig.tar.gz", "your df7cb-tenace-f708c49/src/file.c:59:27: warning: Uninitialized variable: *saveptr [uninitvar]\n df7cb-tenace-f708c49/src/file.c:96:38: note: Calling function 'sane_strtok_r', 3rd argument '&saveptr' value is \n df7cb-tenace-f708c49/src/file.c:59:27: note: Uninitialized variable: *saveptr" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "`sane_strtok_r` reads `*saveptr` only when `str` is NULL. At line 96 it is called as `sane_strtok_r(line, \"|\", &saveptr)`, where `line` is the input line being parsed. Nothing in the shown code suggests `line` is NULL there, so the `*saveptr` branch is not taken on that call and the uninitialized `saveptr` is never read. Later calls (`STRTOK`) pass NULL, but by then `saveptr` has been set by the first call. The new uninitvar warning therefore ignores the `str ? str : *saveptr` guard and is very likely a false positive introduced by the value-flow changes." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/tracker-miners/tracker-miners_3.8.2.orig.tar.xz", "your localsearch-3.8.2/src/tracker/tracker-dbus.c:63:15: style: Condition 'error' is always true [knownConditionTrueFalse]\n localsearch-3.8.2/src/tracker/tracker-dbus.c:60:6: note: Assuming that condition 'error' is not redundant\n localsearch-3.8.2/src/tracker/tracker-dbus.c:63:15: note: Condition 'error' is always true" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The warning itself is a true positive both before and after the PR. Inside `if (error) { ... }`, the ternary `error ? error->message : ...` is always true, because `error` is a local whose address is not passed anywhere between the check and the use. The PR does not add or remove this finding; only the reported note/error path changed. The new note 'Assuming that condition 'error' is not redundant' at line 60 points to the `if (error)` that makes line 63 always true. That makes the message more informative and accurate. The same pattern appears in the other three files. It is a message-accuracy change on a true positive, so it counts as an improvement." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/u/uefitool/uefitool_0.28.0+A73.orig.tar.gz", "main LongSoft-UEFITool-2979662/common/Tiano/EfiTianoDecompress.c:836:67: style: Condition '(CompressedSize+8)<8' is always false [knownConditionTrueFalse]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`CompressedSize` is a `UINT32`, so `CompressedSize + 8` is unsigned arithmetic that wraps. `(CompressedSize + 8) < 8` is the usual overflow check: it is true when `CompressedSize >= 0xFFFFFFF8`. Main wrongly assumed the sum is at least 8 and reported the condition as always false. The PR makes `minUnsignedValue` account for unsigned wraparound, so this false positive is gone." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/u/unixcw/unixcw_3.6.1.orig.tar.gz", "main unixcw-3.6.1/src/libcw/libcw_gen.c:1125:15: style: Condition 'is_empty_tone' is always false [knownConditionTrueFalse]\n unixcw-3.6.1/src/libcw/libcw_gen.c:1093:42: note: Assignment 'is_empty_tone=CW_TQ_EMPTY==queue_state', assigned value is 0\n unixcw-3.6.1/src/libcw/libcw_gen.c:1125:15: note: Condition 'is_empty_tone' is always false" ], "verdict": { "verdict": "improvement", "confidence": "low", "explanation": "The `knownConditionTrueFalse` warning on `is_empty_tone` at line 1125 is reported by both versions. Only its error path changed. The PR's version adds the note \"Assuming that condition 'CW_TQ_EMPTY==queue_state' is not redundant\" at line 1037. That note names the earlier check on `queue_state` from which the 'assigned value is 0' fact is derived. This makes the message more explanatory: it tells the user the warning depends on that earlier condition. The warning's correctness is not affected either way. The code at line 1037 is not shown, so whether this is a true positive cannot be confirmed, which keeps confidence low." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/u/unixcw/unixcw_3.6.1.orig.tar.gz", "your unixcw-3.6.1/src/cwutils/cw_rec_tester.c:351:8: style: Condition '0!=strcmp(tester->input_string,tester->received_string)' is always true [knownConditionTrueFalse]\n unixcw-3.6.1/src/cwutils/cw_rec_tester.c:307:8: note: Assuming that condition '0==strcmp(tester->input_string,tester->received_string)' is not redundant\n unixcw-3.6.1/src/cwutils/cw_rec_tester.c:351:8: note: Condition '0!=strcmp(tester->input_string,tester->received_string)' is always true" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Both versions report the same warning at line 351; only the error path changed, gaining a note at line 307. Line 307 is almost certainly an early return when `0 == strcmp(input_string, received_string)`. The lines 311\u2013350 shown do not modify either string, so at line 351 the strings must differ and `0 != strcmp(...)` is always true. The warning is a true positive. The new note points at the earlier condition that makes it so, which makes the message easier to understand." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/v/veusz/veusz_4.2.1.orig.tar.gz", "main veusz-4.2.1/src/threed/scene.cpp:263:35: style: Condition 'frag.surfaceprop!=0' is always true [knownConditionTrueFalse]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Line 259 already checks 'frag.surfaceprop != 0', so the check at line 263 is redundant and the warning is a true positive in both versions. Only the reporting changed: the PR version adds an error path note pointing to line 259, which explains why the condition is always true. The removed 'main' line and the added 'your' line are the same warning, now with more helpful context." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/w/webcamoid/webcamoid_9.4.0.orig.tar.xz", "main webcamoid-webcamoid-1f02eed/libAvKys/Plugins/FaceDetect/src/haar/haardetector.cpp:958:19: style: Condition 'i!=j' is always true [knownConditionTrueFalse]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "The warning is still reported. Only its text changed: main and your print the same message at the same location for the 'i != j' condition. It is a true positive, because 'j == i' was already skipped by the earlier continue, so 'i != j' is always true. The diff shows only the main and your header lines, plus notes listed under the your line. Most likely only the error path or notes changed (a small attribution change from the addErrorPath filtering) or it is a formatting artifact. The user-visible message is unchanged." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/z/zam-plugins/zam-plugins_4.5+ds.orig.tar.xz", "main zamaudio-zam-plugins-64cb54a/plugins/ZaMultiComp/ZaMultiCompPlugin.hpp:151:30: warning: Invalid log10f() argument nr 1. The value is 0 but the valid values are '1.4013e-45:'. [invalidFunctionArg]\n zamaudio-zam-plugins-64cb54a/plugins/ZaMultiComp/ZaMultiCompPlugin.cpp:833:16: note: Assignment 'maxx=0.f', assigned value is 0.0\n zamaudio-zam-plugins-64cb54a/plugins/ZaMultiComp/ZaMultiCompPlugin.cpp:863:32: note: Assuming condition is false\n zamaudio-zam-plugins-64cb54a/plugins/ZaMultiComp/ZaMultiCompPlugin.cpp:921:39: note: Calling function 'to_dB', 1st argument 'maxx' value is 0.0\n zamaudio-zam-plugins-64cb54a/plugins/ZaMultiComp/ZaMultiCompPlugin.hpp:151:30: note: Invalid argument" ], "verdict": { "verdict": "acceptable regression", "confidence": "low", "explanation": "Only the header is shown; the calling code in ZaMultiCompPlugin.cpp is not. Going by the error path: `maxx` starts at 0.f (line 833), and the loop at line 863 can run zero times; column 32 matches `i < frames`. After that, `to_dB(maxx)` calls `log10f(0)`. No guard appears on the path: the only assumed condition is the loop condition. In practice `maxx` can also stay 0 for silent input. `log10f(0)` is a pole error and returns -inf, so the warning looks like a real (if minor) issue. The PR removes it without making the code safe, probably through its float value or subfunction value-flow changes. That makes this a lost true positive, an acceptable regression. Confidence is low because the .cpp source is not shown." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/z/zarchive/zarchive_0.1.2.orig.tar.gz", "your Exzap-ZArchive-d2c7177/src/zarchivereader.cpp:289:11: style: Condition '!block->next' is always false [knownConditionTrueFalse]\n Exzap-ZArchive-d2c7177/src/zarchivereader.cpp:281:6: note: Assuming that condition '!block->next' is not redundant\n Exzap-ZArchive-d2c7177/src/zarchivereader.cpp:289:11: note: Condition '!block->next' is always false" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The warning itself is unchanged and is a true positive. Line 281 returns early when `!block->next`, so at line 289 `block->next` is non-null and `!block->next` is always false. The only difference is that the new output adds note lines pointing to the earlier check at line 281 that makes the condition redundant. This makes the message easier to understand." } } ], "started": "2026-11-29 00:36:23 UTC", "runner": "server" }