2025-05-09 01:27 ftp://ftp.de.debian.org/debian/pool/main/x/xjadeo/xjadeo_0.8.14+really0.8.14.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --library=sdl --library=motif --library=opengl --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.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 66c9938 (2025-05-08 13:55:11 +0200) count: 204 202 elapsed-time: 3.4 3.4 head-timing-info: old-timing-info: head results: xjadeo-0.8.14/contrib/cli-remote/jadeo.c:129:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/contrib/cli-remote/jadeo.c:77:8: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] xjadeo-0.8.14/src/qt-gui/importdialog.cpp:74:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable StandardError [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/qt-gui/importdialog.cpp:90:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/qt-gui/importdialog.h:10:3: style: Class 'ImportDialog' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:54:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SkipEmptyParts [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:81:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable StandardError [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:90:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable StandardOutput [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:105:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:119:118: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:43:10: style: Obsolete function 'QString::sprintf' called. It is recommended to use 'QString::asprintf', 'QString::arg' or 'QTextStream' instead. [prohibitedsprintfCalled] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:48:10: style: Obsolete function 'QString::sprintf' called. It is recommended to use 'QString::asprintf', 'QString::arg' or 'QTextStream' instead. [prohibitedsprintfCalled] xjadeo-0.8.14/src/qt-gui/prefdialog.h:8:3: style: Class 'PrefDialog' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] xjadeo-0.8.14/src/qt-gui/importprogress.h:10:3: style: Class 'ImportProgress' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:110:18: style: C-style pointer casting [cstyleCast] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:116:46: performance: Function parameter 'src' should be passed by const reference. [passedByValue] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:131:46: performance: Function parameter 'codec' should be passed by const reference. [passedByValue] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:131:61: performance: Function parameter 'fps' should be passed by const reference. [passedByValue] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:138:44: performance: Function parameter 'args' should be passed by const reference. [passedByValue] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:83:17: style: Variable 'msg' is assigned a value that is never used. [unreadVariable] xjadeo-0.8.14/src/qt-gui/importprogress.cpp:83:13: style: Variable 'msg' is assigned a value that is never used. [unreadVariable] xjadeo-0.8.14/src/qt-gui/prefdialog.cpp:39:18: performance:inconclusive: Either there is a missing 'override', or the member function 'PrefDialog::selPrefsDest' can be static. [functionStatic] xjadeo-0.8.14/src/qt-gui/prefdialog.h:11:8: note: Either there is a missing 'override', or the member function 'PrefDialog::selPrefsDest' can be static. xjadeo-0.8.14/src/qt-gui/prefdialog.cpp:39:18: note: Either there is a missing 'override', or the member function 'PrefDialog::selPrefsDest' can be static. xjadeo-0.8.14/src/qt-gui/prefdialog.cpp:51:18: performance:inconclusive: Either there is a missing 'override', or the member function 'PrefDialog::prefDirEnable' can be static. [functionStatic] xjadeo-0.8.14/src/qt-gui/prefdialog.h:12:8: note: Either there is a missing 'override', or the member function 'PrefDialog::prefDirEnable' can be static. xjadeo-0.8.14/src/qt-gui/prefdialog.cpp:51:18: note: Either there is a missing 'override', or the member function 'PrefDialog::prefDirEnable' can be static. xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:69:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MENCODER [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:512:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:619:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_PREFIX [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:435:8: style: Obsolete function 'QString::sprintf' called. It is recommended to use 'QString::asprintf', 'QString::arg' or 'QTextStream' instead. [prohibitedsprintfCalled] xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:436:22: style: Obsolete function 'QString::toAscii' called. It is recommended to use 'QString::toLatin1' instead. [prohibitedtoAsciiCalled] xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:500:53: style: Obsolete function 'QString::toAscii' called. It is recommended to use 'QString::toLatin1' instead. [prohibitedtoAsciiCalled] xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:621:78: style: Obsolete function 'QString::toAscii' called. It is recommended to use 'QString::toLatin1' instead. [prohibitedtoAsciiCalled] xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:621:105: style: Obsolete function 'QString::toAscii' called. It is recommended to use 'QString::toLatin1' instead. [prohibitedtoAsciiCalled] xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:236:14: performance:inconclusive: Either there is a missing 'override', or the member function 'QJadeo::fileImport' can be static. [functionStatic] xjadeo-0.8.14/src/qt-gui/qjadeo.h:55:8: note: Either there is a missing 'override', or the member function 'QJadeo::fileImport' can be static. xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:236:14: note: Either there is a missing 'override', or the member function 'QJadeo::fileImport' can be static. xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:113:3: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] xjadeo-0.8.14/src/xjadeo/common.c:48:29: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] xjadeo-0.8.14/src/xjadeo/common_jack.c:79:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JackNoStartServer [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/configfile.c:296:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/configfile.c:403:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/configfile.c:305:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xjadeo-0.8.14/src/xjadeo/configfile.c:308:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xjadeo-0.8.14/src/xjadeo/configfile.c:470:2: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] xjadeo-0.8.14/src/xjadeo/configfile.c:471:2: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] xjadeo-0.8.14/src/xjadeo/configfile.c:385:75: warning: Either the condition '!xdg' is redundant or there is possible null pointer dereference: xdg. [nullPointerRedundantCheck] xjadeo-0.8.14/src/xjadeo/configfile.c:384:6: note: Assuming that condition '!xdg' is not redundant xjadeo-0.8.14/src/xjadeo/configfile.c:385:75: note: Null pointer dereference xjadeo-0.8.14/src/xjadeo/configfile.c:385:75: error: Null pointer dereference [nullPointer] xjadeo-0.8.14/src/xjadeo/configfile.c:47:21: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] xjadeo-0.8.14/src/xjadeo/configfile.c:119:24: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] xjadeo-0.8.14/src/xjadeo/configfile.c:289:23: style: Parameter 'fn' can be declared as pointer to const [constParameterPointer] xjadeo-0.8.14/src/xjadeo/configfile.c:292:8: style: Variable 'token' can be declared as pointer to const [constVariablePointer] xjadeo-0.8.14/src/xjadeo/display.c:292:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/display.c:403:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_PIX_FMT_YUV420P [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/display.c:435:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_PIX_FMT_YUV420P [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/display.c:495:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_PIX_FMT_YUV420P [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/display.c:645:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/display.c:684:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/display.c:307:15: style: Condition 'user_req=i' is not redundant xjadeo-0.8.14/src/xjadeo/display.c:307:15: note: Condition 'user_req 0' is redundant since 'keyframe_byte_distance > 5242880' is sufficient. [redundantCondition] xjadeo-0.8.14/src/xjadeo/xjadeo.c:201:6: style: Condition 'remote_activity' is always false [knownConditionTrueFalse] xjadeo-0.8.14/src/xjadeo/xjadeo.c:174:24: note: Assignment 'remote_activity=0', assigned value is 0 xjadeo-0.8.14/src/xjadeo/xjadeo.c:201:6: note: Condition 'remote_activity' is always false xjadeo-0.8.14/src/xjadeo/xjadeo.c:721:3: error: Common realloc mistake: 'fidx' nulled but not freed upon failure [memleakOnRealloc] xjadeo-0.8.14/src/xjadeo/xjadeo.c:1415:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fidx [nullPointerOutOfMemory] xjadeo-0.8.14/src/xjadeo/xjadeo.c:1413:16: note: Assuming allocation function fails xjadeo-0.8.14/src/xjadeo/xjadeo.c:1413:16: note: Assignment 'fidx=malloc(frames*sizeof(struct FrameIndex))', assigned value is 0 xjadeo-0.8.14/src/xjadeo/xjadeo.c:1415:3: note: Null pointer dereference xjadeo-0.8.14/src/xjadeo/xjadeo.c:1416:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fidx [nullPointerOutOfMemory] xjadeo-0.8.14/src/xjadeo/xjadeo.c:1413:16: note: Assuming allocation function fails xjadeo-0.8.14/src/xjadeo/xjadeo.c:1413:16: note: Assignment 'fidx=malloc(frames*sizeof(struct FrameIndex))', assigned value is 0 xjadeo-0.8.14/src/xjadeo/xjadeo.c:1416:3: note: Null pointer dereference xjadeo-0.8.14/src/xjadeo/xjadeo.c:1417:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fidx [nullPointerOutOfMemory] xjadeo-0.8.14/src/xjadeo/xjadeo.c:1413:16: note: Assuming allocation function fails xjadeo-0.8.14/src/xjadeo/xjadeo.c:1413:16: note: Assignment 'fidx=malloc(frames*sizeof(struct FrameIndex))', assigned value is 0 xjadeo-0.8.14/src/xjadeo/xjadeo.c:1417:3: note: Null pointer dereference xjadeo-0.8.14/src/xjadeo/xjadeo.c:473:48: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] xjadeo-0.8.14/src/xjadeo/xjadeo.c:1535:8: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] xjadeo-0.8.14/src/xjadeo/xjadeo.c:265:38: style: Variable 'we_know_transport_is_not_rolling' is assigned a value that is never used. [unreadVariable] xjadeo-0.8.14/src/xjadeo/xjremote.c:90:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/xjremote.c:174:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/xjremote.c:203:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXUSR [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/xjremote.c:214:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BINDIR [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/xjremote.c:262:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/xjremote.c:301:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] xjadeo-0.8.14/src/xjadeo/xjremote.c:194:28: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] xjadeo-0.8.14/src/xjadeo/xjadeo.c:1301:14: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [ctunullpointerOutOfMemory] xjadeo-0.8.14/src/xjadeo/remote.c:199:18: note: Assuming allocation function fails xjadeo-0.8.14/src/xjadeo/remote.c:199:18: note: Assignment 'fn=strdup(current_file)', assigned value is 0 xjadeo-0.8.14/src/xjadeo/remote.c:200:13: note: Calling function open_movie, 1st argument is null xjadeo-0.8.14/src/xjadeo/xjadeo.c:1301:14: note: Dereferencing argument file_name that is null diff: head xjadeo-0.8.14/src/qt-gui/importprogress.cpp:83:13: style: Variable 'msg' is assigned a value that is never used. [unreadVariable] head xjadeo-0.8.14/src/qt-gui/prefdialog.cpp:39:18: performance:inconclusive: Either there is a missing 'override', or the member function 'PrefDialog::selPrefsDest' can be static. [functionStatic] xjadeo-0.8.14/src/qt-gui/prefdialog.h:11:8: note: Either there is a missing 'override', or the member function 'PrefDialog::selPrefsDest' can be static. xjadeo-0.8.14/src/qt-gui/prefdialog.cpp:39:18: note: Either there is a missing 'override', or the member function 'PrefDialog::selPrefsDest' can be static. head xjadeo-0.8.14/src/qt-gui/prefdialog.cpp:51:18: performance:inconclusive: Either there is a missing 'override', or the member function 'PrefDialog::prefDirEnable' can be static. [functionStatic] xjadeo-0.8.14/src/qt-gui/prefdialog.h:12:8: note: Either there is a missing 'override', or the member function 'PrefDialog::prefDirEnable' can be static. xjadeo-0.8.14/src/qt-gui/prefdialog.cpp:51:18: note: Either there is a missing 'override', or the member function 'PrefDialog::prefDirEnable' can be static. 2.17.0 xjadeo-0.8.14/src/qt-gui/prefdialog.h:11:8: performance:inconclusive: Either there is a missing 'override', or the member function 'PrefDialog::selPrefsDest' can be static. [functionStatic] xjadeo-0.8.14/src/qt-gui/prefdialog.cpp:39:18: note: Either there is a missing 'override', or the member function 'PrefDialog::selPrefsDest' can be static. xjadeo-0.8.14/src/qt-gui/prefdialog.h:11:8: note: Either there is a missing 'override', or the member function 'PrefDialog::selPrefsDest' can be static. 2.17.0 xjadeo-0.8.14/src/qt-gui/prefdialog.h:12:8: performance:inconclusive: Either there is a missing 'override', or the member function 'PrefDialog::prefDirEnable' can be static. [functionStatic] xjadeo-0.8.14/src/qt-gui/prefdialog.cpp:51:18: note: Either there is a missing 'override', or the member function 'PrefDialog::prefDirEnable' can be static. xjadeo-0.8.14/src/qt-gui/prefdialog.h:12:8: note: Either there is a missing 'override', or the member function 'PrefDialog::prefDirEnable' can be static. head xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:236:14: performance:inconclusive: Either there is a missing 'override', or the member function 'QJadeo::fileImport' can be static. [functionStatic] xjadeo-0.8.14/src/qt-gui/qjadeo.h:55:8: note: Either there is a missing 'override', or the member function 'QJadeo::fileImport' can be static. xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:236:14: note: Either there is a missing 'override', or the member function 'QJadeo::fileImport' can be static. head xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:621:105: style: Obsolete function 'QString::toAscii' called. It is recommended to use 'QString::toLatin1' instead. [prohibitedtoAsciiCalled] 2.17.0 xjadeo-0.8.14/src/qt-gui/qjadeo.h:55:8: performance:inconclusive: Either there is a missing 'override', or the member function 'QJadeo::fileImport' can be static. [functionStatic] xjadeo-0.8.14/src/qt-gui/qjadeo.cpp:236:14: note: Either there is a missing 'override', or the member function 'QJadeo::fileImport' can be static. xjadeo-0.8.14/src/qt-gui/qjadeo.h:55:8: note: Either there is a missing 'override', or the member function 'QJadeo::fileImport' can be static. DONE