2026-10-06 04:03 ftp://ftp.de.debian.org/debian/pool/main/d/dares/dares_0.6.5+repack.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.12.107+deb13-amd64-x86_64-with-glibc2.41 python: 3.12.14 client-version: 1.4.0 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.22.0 head-info: 746b3a7 (2026-10-04 08:53:56 +0200) count: 90 90 elapsed-time: 0.3 0.3 head-timing-info: old-timing-info: head results: dares-0.6.5/backend/dares.c:181:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] dares-0.6.5/backend/dares.c:224:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] dares-0.6.5/backend/dares.c:406:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dares-0.6.5/backend/dares.c:554:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] dares-0.6.5/backend/dares.c:650:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAGIC_MIME [valueFlowBailoutIncompleteVar] dares-0.6.5/backend/dares.c:477:15: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] dares-0.6.5/backend/dares.c:475:13: note: outer condition: add dares-0.6.5/backend/dares.c:477:15: note: identical inner condition: add dares-0.6.5/backend/dares.c:451:5: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dares-0.6.5/backend/dares.c:451:5: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dares-0.6.5/backend/dares.c:451:5: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dares-0.6.5/backend/dares.c:816:7: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dares-0.6.5/backend/dares.c:816:7: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dares-0.6.5/backend/dares.c:823:8: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dares-0.6.5/backend/dares.c:823:8: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dares-0.6.5/backend/dares.c:839:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dares-0.6.5/backend/dares.c:839:3: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dares-0.6.5/backend/dares.c:842:5: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dares-0.6.5/backend/dares.c:842:5: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dares-0.6.5/backend/dares.c:893:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dares-0.6.5/backend/dares.c:191:5: error: Resource leak: f [resourceLeak] dares-0.6.5/backend/dares.c:253:7: error: Memory leak: c [memleak] dares-0.6.5/backend/dares.c:262:9: error: Memory leak: c [memleak] dares-0.6.5/backend/dares.c:356:3: error: Memory leak: tmp [memleak] dares-0.6.5/backend/dares.c:657:5: error: Memory leak: data [memleak] dares-0.6.5/backend/dares.c:369:16: style: Argument 'image' shadows outer variable [shadowVariable] dares-0.6.5/backend/dares.c:47:6: note: Shadowed variable dares-0.6.5/backend/dares.c:369:16: note: Shadow argument dares-0.6.5/backend/dares.c:87:9: style: Variable 'c' can be declared as pointer to const [constVariablePointer] dares-0.6.5/backend/dares.c:138:18: style: Parameter 'myname' can be declared as pointer to const [constParameterPointer] dares-0.6.5/backend/dares.c:294:23: style: Variable 'text_chars' can be declared as const array [constVariable] dares-0.6.5/backend/dares.c:340:9: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] dares-0.6.5/backend/dares.c:380:18: style: Variable 'c' can be declared as pointer to const [constVariablePointer] dares-0.6.5/backend/dares.c:425:23: style: Parameter 'add' can be declared as pointer to const [constParameterPointer] dares-0.6.5/backend/dares.c:518:41: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] dares-0.6.5/backend/dares.c:528:18: style: Variable 'e' can be declared as pointer to const [constVariablePointer] dares-0.6.5/backend/dares.c:615:9: style: Variable 'h2i' can be declared as pointer to const [constVariablePointer] dares-0.6.5/backend/dares.c:527:14: style: Variable 'toread' is assigned a value that is never used. [unreadVariable] dares-0.6.5/backend/dares.c:530:20: style: Variable 'bk' is assigned a value that is never used. [unreadVariable] dares-0.6.5/backend/dares.c:646:9: style: Variable 'nread' is assigned a value that is never used. [unreadVariable] dares-0.6.5/frontend/ncurses/display.c:56:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/ncurses/display.c:95:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/ncurses/display.c:159:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/ncurses/display.c:240:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/ncurses/display.c:307:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_UNDERLINE [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/ncurses/display.c:386:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/ncurses/display.c:408:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_UNDERLINE [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/ncurses/display.c:454:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_RIGHT [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/ncurses/display.c:308:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dares-0.6.5/frontend/ncurses/display.c:387:5: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dares-0.6.5/frontend/ncurses/display.c:403:30: style: Argument 'n_types' shadows outer variable [shadowVariable] dares-0.6.5/frontend/ncurses/display.c:37:12: note: Shadowed variable dares-0.6.5/frontend/ncurses/display.c:403:30: note: Shadow argument dares-0.6.5/frontend/ncurses/display.c:48:33: style: Parameter 'f' can be declared as const array [constParameter] dares-0.6.5/frontend/ncurses/display.c:84:39: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] dares-0.6.5/frontend/ncurses/display.c:376:48: style: Parameter 'size' can be declared as const array [constParameter] dares-0.6.5/frontend/ncurses/display.c:428:20: style: Variable 'f' can be declared as pointer to const [constVariablePointer] dares-0.6.5/frontend/qt/daresview.cpp:75:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ASC [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/qt/daresview.cpp:213:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ASC [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/qt/daresview.cpp:307:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/qt/daresview.cpp:376:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/qt/daresview.cpp:441:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXMAGIS [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/qt/daresview.cpp:532:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/qt/daresview.cpp:557:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ExcludeUserInput [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/qt/daresview.cpp:581:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/qt/daresview.cpp:649:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/qt/daresview.cpp:251:15: style:inconclusive: Technically the member function 'RawFile::hasFileInfo' can be const. [functionConst] dares-0.6.5/frontend/qt/daresview.h:49:8: note: Technically the member function 'RawFile::hasFileInfo' can be const. dares-0.6.5/frontend/qt/daresview.cpp:251:15: note: Technically the member function 'RawFile::hasFileInfo' can be const. dares-0.6.5/frontend/qt/daresview.cpp:245:19: style:inconclusive: Technically the member function 'RawFile::daresTypeName' can be const. [functionConst] dares-0.6.5/frontend/qt/daresview.h:51:12: note: Technically the member function 'RawFile::daresTypeName' can be const. dares-0.6.5/frontend/qt/daresview.cpp:245:19: note: Technically the member function 'RawFile::daresTypeName' can be const. dares-0.6.5/frontend/qt/daresview.cpp:239:19: style:inconclusive: Technically the member function 'RawFile::savedFileName' can be const. [functionConst] dares-0.6.5/frontend/qt/daresview.h:52:12: note: Technically the member function 'RawFile::savedFileName' can be const. dares-0.6.5/frontend/qt/daresview.cpp:239:19: note: Technically the member function 'RawFile::savedFileName' can be const. dares-0.6.5/frontend/qt/daresview.h:73:13: style:inconclusive: Either there is a missing 'override', or the member function 'Folder::folderName' can be const. [functionConst] dares-0.6.5/frontend/qt/daresview.cpp:566:17: style:inconclusive: Either there is a missing 'override', or the member function 'DaResView::hasFileInfo' can be const. [functionConst] dares-0.6.5/frontend/qt/daresview.h:133:10: note: Either there is a missing 'override', or the member function 'DaResView::hasFileInfo' can be const. dares-0.6.5/frontend/qt/daresview.cpp:566:17: note: Either there is a missing 'override', or the member function 'DaResView::hasFileInfo' can be const. dares-0.6.5/frontend/qt/daresview.h:34:3: style: Class 'RawFile' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dares-0.6.5/frontend/qt/daresview.h:109:5: style: Class 'DaResView' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dares-0.6.5/frontend/qt/daresview.h:73:13: performance: Function 'folderName()' should return member 'mFName' by const reference. [returnByReference] dares-0.6.5/frontend/qt/daresview.cpp:121:27: style: C-style pointer casting [cstyleCast] dares-0.6.5/frontend/qt/daresview.cpp:130:37: style: C-style pointer casting [cstyleCast] dares-0.6.5/frontend/qt/daresview.cpp:143:57: style: C-style pointer casting [cstyleCast] dares-0.6.5/frontend/qt/daresview.cpp:193:57: style: C-style pointer casting [cstyleCast] dares-0.6.5/frontend/qt/daresview.cpp:366:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] dares-0.6.5/frontend/qt/daresview.cpp:366:78: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] dares-0.6.5/frontend/qt/daresview.cpp:117:22: style: The scope of the variable 'c' can be reduced. [variableScope] dares-0.6.5/frontend/qt/daresview.cpp:151:13: style: The scope of the variable 's' can be reduced. [variableScope] dares-0.6.5/frontend/qt/daresview.cpp:439:7: style: The scope of the variable 'i' can be reduced. [variableScope] dares-0.6.5/frontend/qt/daresview.cpp:492:15: style: The scope of the variable 'f2' can be reduced. [variableScope] dares-0.6.5/frontend/qt/daresview.cpp:535:41: style:inconclusive: Function 'slotRMB' argument 1 names different: declaration '' definition 'i'. [funcArgNamesDifferentUnnamed] dares-0.6.5/frontend/qt/daresview.cpp:535:59: style:inconclusive: Function 'slotRMB' argument 2 names different: declaration '' definition 'point'. [funcArgNamesDifferentUnnamed] dares-0.6.5/frontend/qt/daresview.cpp:654:51: style:inconclusive: Function 'slotFolderChanged' argument 1 names different: declaration '' definition 'i'. [funcArgNamesDifferentUnnamed] dares-0.6.5/frontend/qt/daresview.cpp:491:11: style: Local variable 'i' shadows outer variable [shadowVariable] dares-0.6.5/frontend/qt/daresview.cpp:439:7: note: Shadowed variable dares-0.6.5/frontend/qt/daresview.cpp:491:11: note: Shadow local variable dares-0.6.5/frontend/qt/daresview.cpp:442:20: style: Variable 'f' can be declared as pointer to const [constVariablePointer] dares-0.6.5/frontend/qt/daresview.cpp:492:15: style: Variable 'f2' can be declared as pointer to const [constVariablePointer] dares-0.6.5/frontend/qt/daresview.cpp:439:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] dares-0.6.5/frontend/qt/daresview.cpp:492:18: style: Variable 'f2' is assigned a value that is never used. [unreadVariable] dares-0.6.5/frontend/qt/daresview.cpp:511:12: style: Variable 'f2' is assigned a value that is never used. [unreadVariable] dares-0.6.5/frontend/qt/main.cpp:55:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DARES_OPEN_INVALID_PARAM [valueFlowBailoutIncompleteVar] dares-0.6.5/frontend/qt/main.cpp:42:17: style: C-style pointer casting [cstyleCast] dares-0.6.5/frontend/qt/paramsdialog.cpp:45:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AlignCenter [valueFlowBailoutIncompleteVar] diff: DONE