2025-05-06 13:29 ftp://ftp.de.debian.org/debian/pool/main/n/nemo-fileroller/nemo-fileroller_6.4.0.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 40776f9 (2025-05-06 14:25:14 +0200) count: 7 14 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: nemo-fileroller/src/fileroller-module.c:35:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] nemo-fileroller/src/nemo-fileroller.c:346:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nemo_file_info_list_free [valueFlowBailoutIncompleteVar] nemo-fileroller/src/nemo-fileroller.c:466:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] nemo-fileroller/src/nemo-fileroller.c:351:24: style: Condition 'always_show_extract_to' is always false [knownConditionTrueFalse] nemo-fileroller/src/nemo-fileroller.c:135:17: style: Local variable 'file' shadows outer variable [shadowVariable] nemo-fileroller/src/nemo-fileroller.c:115:16: note: Shadowed declaration nemo-fileroller/src/nemo-fileroller.c:135:17: note: Shadow variable nemo-fileroller/src/nemo-fileroller.c:417:32: style: Parameter 'fr' can be declared as pointer to const. However it seems that 'nemo_fr_instance_init' is a callback function, if 'fr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] nemo-fileroller/src/nemo-fileroller.c:450:23: note: You might need to cast the function pointer here nemo-fileroller/src/nemo-fileroller.c:417:32: note: Parameter 'fr' can be declared as pointer to const nemo-fileroller/src/nemo-fileroller.c:422:34: style: Parameter 'class' can be declared as pointer to const. However it seems that 'nemo_fr_class_init' is a callback function, if 'class' is declared with const you might also need to cast function pointer(s). [constParameterCallback] nemo-fileroller/src/nemo-fileroller.c:445:20: note: You might need to cast the function pointer here nemo-fileroller/src/nemo-fileroller.c:422:34: note: Parameter 'class' can be declared as pointer to const diff: 2.17.0 nemo-fileroller/src/nemo-fileroller.c:100:30: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] nemo-fileroller/src/nemo-fileroller.c:86:21: note: Assuming allocation function fails nemo-fileroller/src/nemo-fileroller.c:86:21: note: Assignment 'cmd=g_string_new("file-roller --extract-here")', assigned value is 0 nemo-fileroller/src/nemo-fileroller.c:100:30: note: Null pointer dereference 2.17.0 nemo-fileroller/src/nemo-fileroller.c:128:26: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] nemo-fileroller/src/nemo-fileroller.c:127:21: note: Assuming allocation function fails nemo-fileroller/src/nemo-fileroller.c:127:21: note: Assignment 'cmd=g_string_new("file-roller")', assigned value is 0 nemo-fileroller/src/nemo-fileroller.c:128:26: note: Null pointer dereference 2.17.0 nemo-fileroller/src/nemo-fileroller.c:139:27: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] nemo-fileroller/src/nemo-fileroller.c:127:21: note: Assuming allocation function fails nemo-fileroller/src/nemo-fileroller.c:127:21: note: Assignment 'cmd=g_string_new("file-roller")', assigned value is 0 nemo-fileroller/src/nemo-fileroller.c:139:27: note: Null pointer dereference 2.17.0 nemo-fileroller/src/nemo-fileroller.c:144:30: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] nemo-fileroller/src/nemo-fileroller.c:127:21: note: Assuming allocation function fails nemo-fileroller/src/nemo-fileroller.c:127:21: note: Assignment 'cmd=g_string_new("file-roller")', assigned value is 0 nemo-fileroller/src/nemo-fileroller.c:144:30: note: Null pointer dereference 2.17.0 nemo-fileroller/src/nemo-fileroller.c:58:26: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] nemo-fileroller/src/nemo-fileroller.c:57:21: note: Assuming allocation function fails nemo-fileroller/src/nemo-fileroller.c:57:21: note: Assignment 'cmd=g_string_new("file-roller")', assigned value is 0 nemo-fileroller/src/nemo-fileroller.c:58:26: note: Null pointer dereference 2.17.0 nemo-fileroller/src/nemo-fileroller.c:67:30: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] nemo-fileroller/src/nemo-fileroller.c:57:21: note: Assuming allocation function fails nemo-fileroller/src/nemo-fileroller.c:57:21: note: Assignment 'cmd=g_string_new("file-roller")', assigned value is 0 nemo-fileroller/src/nemo-fileroller.c:67:30: note: Null pointer dereference 2.17.0 nemo-fileroller/src/nemo-fileroller.c:95:27: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] nemo-fileroller/src/nemo-fileroller.c:86:21: note: Assuming allocation function fails nemo-fileroller/src/nemo-fileroller.c:86:21: note: Assignment 'cmd=g_string_new("file-roller --extract-here")', assigned value is 0 nemo-fileroller/src/nemo-fileroller.c:95:27: note: Null pointer dereference DONE