2025-07-01 01:07 ftp://ftp.de.debian.org/debian/pool/main/s/syncmaildir/syncmaildir_1.3.0.orig.tar.gz 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 -j1 platform: Linux-6.8.0-62-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: dfa16af (2025-06-30 19:43:56 +0200) count: 255 276 elapsed-time: 16.3 18.1 head-timing-info: old-timing-info: head results: syncmaildir-1.3.0/mddiff.c:78:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:221:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:237:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:267:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:342:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:371:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:406:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:439:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:602:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:740:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:814:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:838:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:877:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:900:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:983:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:1034:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/mddiff.c:623:22: warning: Either the condition 'sb.st_size==0' is redundant or mmap() argument nr 2 can have invalid value. The value is 0 but the valid values are '1:'. [invalidFunctionArg] syncmaildir-1.3.0/mddiff.c:625:18: note: Assuming that condition 'sb.st_size==0' is not redundant syncmaildir-1.3.0/mddiff.c:623:22: note: Invalid argument syncmaildir-1.3.0/mddiff.c:845:22: warning: Either the condition 'sb.st_size==0' is redundant or mmap() argument nr 2 can have invalid value. The value is 0 but the valid values are '1:'. [invalidFunctionArg] syncmaildir-1.3.0/mddiff.c:847:18: note: Assuming that condition 'sb.st_size==0' is not redundant syncmaildir-1.3.0/mddiff.c:845:22: note: Invalid argument syncmaildir-1.3.0/mddiff.c:869:17: warning: Either the condition 'sb.st_size==0' is redundant or munmap() argument nr 2 can have invalid value. The value is 0 but the valid values are '1:'. [invalidFunctionArg] syncmaildir-1.3.0/mddiff.c:847:18: note: Assuming that condition 'sb.st_size==0' is not redundant syncmaildir-1.3.0/mddiff.c:869:17: note: Invalid argument syncmaildir-1.3.0/mddiff.c:904:22: warning: Either the condition 'sb.st_size==0' is redundant or mmap() argument nr 2 can have invalid value. The value is 0 but the valid values are '1:'. [invalidFunctionArg] syncmaildir-1.3.0/mddiff.c:906:18: note: Assuming that condition 'sb.st_size==0' is not redundant syncmaildir-1.3.0/mddiff.c:904:22: note: Invalid argument syncmaildir-1.3.0/mddiff.c:265:3: error: Common realloc mistake: 'mails' nulled but not freed upon failure [memleakOnRealloc] syncmaildir-1.3.0/mddiff.c:289:3: error: Common realloc mistake: 'names' nulled but not freed upon failure [memleakOnRealloc] syncmaildir-1.3.0/mddiff.c:1037:5: error: Common realloc mistake: 'excludes' nulled but not freed upon failure [memleakOnRealloc] syncmaildir-1.3.0/mddiff.c:739:35: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] syncmaildir-1.3.0/mddiff.c:798:22: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:798:22: note: Assignment 'data=strdup(txtURL(paths[i],tmpbuff_5))', assigned value is 0 syncmaildir-1.3.0/mddiff.c:800:15: note: Calling function 'analyze_dir', 1st argument 'data' value is 0 syncmaildir-1.3.0/mddiff.c:739:35: note: Null pointer dereference syncmaildir-1.3.0/mddiff.c:786:13: warning: If memory allocation fails, then there is a possible null pointer dereference: newdir [nullPointerOutOfMemory] syncmaildir-1.3.0/mddiff.c:785:26: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:785:26: note: Assignment 'newdir=malloc(len)', assigned value is 0 syncmaildir-1.3.0/mddiff.c:786:13: note: Null pointer dereference syncmaildir-1.3.0/mddiff.c:799:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] syncmaildir-1.3.0/mddiff.c:798:22: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:798:22: note: Assignment 'data=strdup(txtURL(paths[i],tmpbuff_5))', assigned value is 0 syncmaildir-1.3.0/mddiff.c:799:7: note: Null pointer dereference syncmaildir-1.3.0/mddiff.c:799:19: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] syncmaildir-1.3.0/mddiff.c:798:22: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:798:22: note: Assignment 'data=strdup(txtURL(paths[i],tmpbuff_5))', assigned value is 0 syncmaildir-1.3.0/mddiff.c:799:19: note: Null pointer dereference syncmaildir-1.3.0/mddiff.c:869:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: addr [nullPointerOutOfMemory] syncmaildir-1.3.0/mddiff.c:845:13: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:845:13: note: Assignment 'addr=mmap(NULL,sb.st_size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 syncmaildir-1.3.0/mddiff.c:855:13: note: Assuming condition is false syncmaildir-1.3.0/mddiff.c:869:9: note: Null pointer dereference syncmaildir-1.3.0/mddiff.c:920:33: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: addr [nullPointerOutOfMemory] syncmaildir-1.3.0/mddiff.c:904:13: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:904:13: note: Assignment 'addr=mmap(NULL,sb.st_size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 syncmaildir-1.3.0/mddiff.c:920:33: note: Null pointer dereference syncmaildir-1.3.0/mddiff.c:1121:11: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] syncmaildir-1.3.0/mddiff.c:1118:15: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:1118:15: note: Assignment 'data=strdup(txtURL(argv[optind],tmpbuff_5))', assigned value is 0 syncmaildir-1.3.0/mddiff.c:1121:11: note: Null pointer dereference syncmaildir-1.3.0/mddiff.c:249:29: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] syncmaildir-1.3.0/mddiff.c:845:13: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:845:13: note: Assignment 'addr=mmap(NULL,sb.st_size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 syncmaildir-1.3.0/mddiff.c:853:28: note: Calling function 'find_endof_header', 1st argument 'addr' value is 0 syncmaildir-1.3.0/mddiff.c:249:29: note: Null pointer addition syncmaildir-1.3.0/mddiff.c:250:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] syncmaildir-1.3.0/mddiff.c:845:13: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:845:13: note: Assignment 'addr=mmap(NULL,sb.st_size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 syncmaildir-1.3.0/mddiff.c:853:28: note: Calling function 'find_endof_header', 1st argument 'addr' value is 0 syncmaildir-1.3.0/mddiff.c:250:13: note: Assignment 'next=addr', assigned value is 0 syncmaildir-1.3.0/mddiff.c:250:24: note: Null pointer addition syncmaildir-1.3.0/mddiff.c:1024:2: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] syncmaildir-1.3.0/mddiff.c:879:3: style: Statements following noreturn function 'exit()' will never be executed. [unreachableCode] syncmaildir-1.3.0/mddiff.c:885:3: style: Statements following noreturn function 'exit()' will never be executed. [unreachableCode] syncmaildir-1.3.0/mddiff.c:1090:5: style: Statements following noreturn function 'exit()' will never be executed. [unreachableCode] syncmaildir-1.3.0/mddiff.c:1111:5: style: Statements following noreturn function 'exit()' will never be executed. [unreachableCode] syncmaildir-1.3.0/mddiff.c:1128:4: style: Statements following noreturn function 'exit()' will never be executed. [unreachableCode] syncmaildir-1.3.0/mddiff.c:1014:20: style: Local variable 'mailno' shadows outer variable [shadowVariable] syncmaildir-1.3.0/mddiff.c:176:15: note: Shadowed declaration syncmaildir-1.3.0/mddiff.c:1014:20: note: Shadow variable syncmaildir-1.3.0/mddiff.c:91:36: style: Parameter 'sha1' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/mddiff.c:217:38: style: Parameter 'description' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/mddiff.c:249:18: style: Variable 'end' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/mddiff.c:307:18: style: Variable 'k' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/mddiff.c:733:17: style: Variable 'dir_entry' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/mddiff.c:873:34: style: Parameter 'src_name' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/mddiff.c:873:50: style: Parameter 'tgt_name' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/mddiff.c:979:24: style: Parameter 'argv0' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/mddiff.c:981:8: style: Variable 'bname' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/mddiff.c:1013:8: style: Variable 'dbfile' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:314:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:331:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_RUN_LAST [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:341:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INTERFACE [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:394:108: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:727:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v_pointer [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:732:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v_pointer [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:739:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v_pointer [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:748:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v_pointer [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:753:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v_pointer [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:771:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v_pointer [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:789:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_PARAM_OBJECT [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:797:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v_pointer [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:804:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v_pointer [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:822:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v_pointer [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:880:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_FLAG_CLASSED [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:987:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_ERROR [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:1069:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SPAWN_ERROR [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:1144:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SPAWN_ERROR [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:1433:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:2119:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_ERROR [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:2955:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_ERROR [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:3477:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:3711:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SPAWN_ERROR [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:3925:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:4618:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:4652:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:4737:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_ERROR [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:4944:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_ERROR [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:5112:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PRIORITY_DEFAULT [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:5218:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable finalize [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:5332:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SMD_CONF_PREFIX [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:5643:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GMutex [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:5652:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GRecMutex [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:5661:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GRWLock [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:5670:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCond [valueFlowBailoutIncompleteVar] syncmaildir-1.3.0/smd-applet.c:1314:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] syncmaildir-1.3.0/smd-applet.c:983:4: warning: Return value of function g_file_get_contents() is not used. [ignoredReturnValue] syncmaildir-1.3.0/smd-applet.c:997:4: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] syncmaildir-1.3.0/smd-applet.c:5217:2: style: g_type_class_add_private has been deprecated since version 2.58 and should not be used in newly-written code. Use the G_ADD_PRIVATE() macro with the G_DEFINE_* family of macros to add instance private data to a type. [prohibitedg_type_class_add_privateCalled] syncmaildir-1.3.0/smd-applet.c:3551:48: warning: If resource allocation fails, then there is a possible null pointer dereference: _tmp34_ [nullPointerOutOfResources] syncmaildir-1.3.0/smd-applet.c:3524:20: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:3524:20: note: Assignment '_tmp30_=fdopen(_tmp29_,"r")', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:3525:11: note: Assignment 'input=_tmp30_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:3548:13: note: _tmp34_ is assigned 'input' here. syncmaildir-1.3.0/smd-applet.c:3551:48: note: Null pointer dereference syncmaildir-1.3.0/smd-applet.c:3571:55: warning: Either the condition '_tmp48_!=NULL' is redundant or there is possible null pointer dereference: _tmp40_. [nullPointerRedundantCheck] syncmaildir-1.3.0/smd-applet.c:3585:15: note: Assuming that condition '_tmp48_!=NULL' is not redundant syncmaildir-1.3.0/smd-applet.c:3584:13: note: Assignment to '_tmp48_=s' syncmaildir-1.3.0/smd-applet.c:3570:12: note: _tmp40_ is assigned 's' here. syncmaildir-1.3.0/smd-applet.c:3571:55: note: Null pointer dereference syncmaildir-1.3.0/smd-applet.c:3919:14: style: Local variable 'e' shadows outer variable [shadowVariable] syncmaildir-1.3.0/smd-applet.c:3784:9: note: Shadowed declaration syncmaildir-1.3.0/smd-applet.c:3919:14: note: Shadow variable syncmaildir-1.3.0/smd-applet.c:3973:15: style: Local variable 'e' shadows outer variable [shadowVariable] syncmaildir-1.3.0/smd-applet.c:3784:9: note: Shadowed declaration syncmaildir-1.3.0/smd-applet.c:3973:15: note: Shadow variable syncmaildir-1.3.0/smd-applet.c:4348:15: style: Local variable 'e' shadows outer variable [shadowVariable] syncmaildir-1.3.0/smd-applet.c:3784:9: note: Shadowed declaration syncmaildir-1.3.0/smd-applet.c:4348:15: note: Shadow variable syncmaildir-1.3.0/smd-applet.c:378:62: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/smd-applet.c:414:11: style: Variable 'object' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:442:79: style: Parameter 'connection' can be declared as pointer to const. However it seems that 'network_manager_dbus_interface_set_property' is a callback function, if 'connection' is declared with const you might also need to cast function pointer(s). [constParameterCallback] syncmaildir-1.3.0/smd-applet.c:300:166: note: You might need to cast the function pointer here syncmaildir-1.3.0/smd-applet.c:442:79: note: Parameter 'connection' can be declared as pointer to const syncmaildir-1.3.0/smd-applet.c:442:205: style: Parameter 'value' can be declared as pointer to const. However it seems that 'network_manager_dbus_interface_set_property' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] syncmaildir-1.3.0/smd-applet.c:300:166: note: You might need to cast the function pointer here syncmaildir-1.3.0/smd-applet.c:442:205: note: Parameter 'value' can be declared as pointer to const syncmaildir-1.3.0/smd-applet.c:444:11: style: Variable 'object' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:688:39: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/smd-applet.c:890:9: style: Variable 'self' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:968:13: style: Variable 'self' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:1049:53: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/smd-applet.c:1124:53: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/smd-applet.c:1241:58: style: Parameter 's' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/smd-applet.c:1273:37: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/smd-applet.c:1907:19: style: Variable '_tmp3_' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:1948:9: style: Variable '_tmp3_' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:1960:10: style: Variable '_tmp5_' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:1961:10: style: Variable '_tmp6_' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:3382:37: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/smd-applet.c:3660:67: style: Parameter 'not' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/smd-applet.c:3824:10: style: Variable '_tmp11_' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:3876:13: style: Variable '_tmp27_' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:3998:10: style: Variable '_tmp56_' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:4444:10: style: Variable '_tmp190_' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:4447:11: style: Variable '_tmp191_' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:4464:11: style: Variable '_tmp195_' can be declared as pointer to const [constVariablePointer] syncmaildir-1.3.0/smd-applet.c:4483:70: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/smd-applet.c:4490:75: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/smd-applet.c:4535:77: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/smd-applet.c:5090:64: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] syncmaildir-1.3.0/smd-applet.c:416:9: style: Variable 'object' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:446:9: style: Variable 'object' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:990:5: style: Variable 'content' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:1002:5: style: Variable 'content' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:1025:4: style: Variable 'content' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:1030:3: style: Variable 'content' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:1087:4: style: Variable 'cmd' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:1162:4: style: Variable 'cmd' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:1314:6: style: Variable 'var' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:1688:4: style: Variable 'content' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2368:5: style: Variable 'acts' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2370:5: style: Variable 'mail_body' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2371:5: style: Variable 'mail_name' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2372:5: style: Variable 'permissions' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2383:5: style: Variable 'acts' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2385:5: style: Variable 'mail_body' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2386:5: style: Variable 'mail_name' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2387:5: style: Variable 'permissions' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2407:5: style: Variable 'acts' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2409:5: style: Variable 'mail_body' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2410:5: style: Variable 'mail_name' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2411:5: style: Variable 'permissions' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2423:5: style: Variable 'acts' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2425:5: style: Variable 'mail_body' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2426:5: style: Variable 'mail_name' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2427:5: style: Variable 'permissions' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2448:5: style: Variable 'acts' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2450:5: style: Variable 'mail_body' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2451:5: style: Variable 'mail_name' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2452:5: style: Variable 'permissions' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2465:5: style: Variable 'acts' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2467:5: style: Variable 'mail_body' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2468:5: style: Variable 'mail_name' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2469:5: style: Variable 'permissions' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2560:8: style: Variable 'err' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2561:8: style: Variable 'output' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2562:8: style: Variable 'file' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2567:8: style: Variable 'acts' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2569:8: style: Variable 'mail_body' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2570:8: style: Variable 'mail_name' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2571:8: style: Variable 'permissions' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2609:8: style: Variable 'err' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2610:8: style: Variable 'output' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2611:8: style: Variable 'file' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2616:8: style: Variable 'acts' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2618:8: style: Variable 'mail_body' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2619:8: style: Variable 'mail_name' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2620:8: style: Variable 'permissions' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2631:8: style: Variable 'err' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2632:8: style: Variable 'output' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2633:8: style: Variable 'file' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2638:8: style: Variable 'acts' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2640:8: style: Variable 'mail_body' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2641:8: style: Variable 'mail_name' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2642:8: style: Variable 'permissions' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2715:9: style: Variable 'err' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2716:9: style: Variable 'output' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2717:9: style: Variable 'file' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2722:9: style: Variable 'acts' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2724:9: style: Variable 'mail_body' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2725:9: style: Variable 'mail_name' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2726:9: style: Variable 'permissions' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2764:9: style: Variable 'err' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2765:9: style: Variable 'output' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2766:9: style: Variable 'file' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2771:9: style: Variable 'acts' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2773:9: style: Variable 'mail_body' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2774:9: style: Variable 'mail_name' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2775:9: style: Variable 'permissions' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2786:9: style: Variable 'err' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2787:9: style: Variable 'output' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2788:9: style: Variable 'file' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2793:9: style: Variable 'acts' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2795:9: style: Variable 'mail_body' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2796:9: style: Variable 'mail_name' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:2797:9: style: Variable 'permissions' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3031:4: style: Variable 'tags' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3032:4: style: Variable 'host' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3033:4: style: Variable 'account' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3057:4: style: Variable 'tags' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3058:4: style: Variable 'host' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3059:4: style: Variable 'account' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3116:5: style: Variable 'tags' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3117:5: style: Variable 'host' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3118:5: style: Variable 'account' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3146:5: style: Variable 'tags' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3147:5: style: Variable 'host' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3148:5: style: Variable 'account' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3301:6: style: Variable 'args' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3305:6: style: Variable 'tags' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3306:6: style: Variable 'host' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3307:6: style: Variable 'account' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3503:9: style: Variable 'buff' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3504:8: style: Variable 'cmd' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3507:9: style: Variable 'buff' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3508:8: style: Variable 'cmd' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3621:7: style: Variable 'cmd' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3644:9: style: Variable 'buff' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3645:8: style: Variable 'cmd' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3648:9: style: Variable 'buff' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3649:8: style: Variable 'cmd' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3656:6: style: Variable 'cmd' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3714:4: style: Variable '_error_' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3715:4: style: Variable 'output' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3766:3: style: Variable '_error_' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:3767:3: style: Variable 'output' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:4300:8: style: Variable 'nice_command' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:4302:8: style: Variable 'command' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:4361:7: style: Variable 'nice_command' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:4363:7: style: Variable 'command' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:4947:5: style: Variable 'content' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:4948:5: style: Variable 'file' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5057:4: style: Variable 'content' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5058:4: style: Variable 'file' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5489:7: style: Variable 'oe' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5490:4: style: Variable 'conf_home' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5491:4: style: Variable 'homedir' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5492:4: style: Variable 'PREFIX' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5523:6: style: Variable 'oe' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5524:3: style: Variable 'conf_home' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5525:3: style: Variable 'homedir' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5526:3: style: Variable 'PREFIX' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5542:7: style: Variable 'oe' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5543:4: style: Variable 'conf_home' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5544:4: style: Variable 'homedir' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5545:4: style: Variable 'PREFIX' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5559:7: style: Variable 'oe' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5560:4: style: Variable 'conf_home' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5561:4: style: Variable 'homedir' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5562:4: style: Variable 'PREFIX' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5594:6: style: Variable 'oe' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5595:3: style: Variable 'conf_home' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5596:3: style: Variable 'homedir' is assigned a value that is never used. [unreadVariable] syncmaildir-1.3.0/smd-applet.c:5597:3: style: Variable 'PREFIX' is assigned a value that is never used. [unreadVariable] diff: 2.17.0 syncmaildir-1.3.0/mddiff.c:1005:23: warning: If memory allocation fails, then there is a possible null pointer dereference: bname [nullPointerOutOfMemory] syncmaildir-1.3.0/mddiff.c:981:35: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:981:35: note: Assignment 'bname=g_path_get_basename(argv0)', assigned value is 0 syncmaildir-1.3.0/mddiff.c:1005:23: note: Null pointer dereference head syncmaildir-1.3.0/mddiff.c:1024:2: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] 2.17.0 syncmaildir-1.3.0/mddiff.c:249:29: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] syncmaildir-1.3.0/mddiff.c:845:13: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:845:13: note: Assignment 'addr=mmap(NULL,sb.st_size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 syncmaildir-1.3.0/mddiff.c:853:28: note: Calling function 'find_endof_header', 1st argument 'addr' value is 0 syncmaildir-1.3.0/mddiff.c:249:29: note: Null pointer addition head syncmaildir-1.3.0/mddiff.c:249:29: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] syncmaildir-1.3.0/mddiff.c:845:13: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:845:13: note: Assignment 'addr=mmap(NULL,sb.st_size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 syncmaildir-1.3.0/mddiff.c:853:28: note: Calling function 'find_endof_header', 1st argument 'addr' value is 0 syncmaildir-1.3.0/mddiff.c:249:29: note: Null pointer addition 2.17.0 syncmaildir-1.3.0/mddiff.c:250:24: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] syncmaildir-1.3.0/mddiff.c:845:13: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:845:13: note: Assignment 'addr=mmap(NULL,sb.st_size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 syncmaildir-1.3.0/mddiff.c:853:28: note: Calling function 'find_endof_header', 1st argument 'addr' value is 0 syncmaildir-1.3.0/mddiff.c:250:13: note: Assignment 'next=addr', assigned value is 0 syncmaildir-1.3.0/mddiff.c:250:24: note: Null pointer addition head syncmaildir-1.3.0/mddiff.c:250:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] syncmaildir-1.3.0/mddiff.c:845:13: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:845:13: note: Assignment 'addr=mmap(NULL,sb.st_size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 syncmaildir-1.3.0/mddiff.c:853:28: note: Calling function 'find_endof_header', 1st argument 'addr' value is 0 syncmaildir-1.3.0/mddiff.c:250:13: note: Assignment 'next=addr', assigned value is 0 syncmaildir-1.3.0/mddiff.c:250:24: note: Null pointer addition 2.17.0 syncmaildir-1.3.0/mddiff.c:757:15: warning: If memory allocation fails, then there is a possible null pointer dereference: bname [nullPointerOutOfMemory] syncmaildir-1.3.0/mddiff.c:755:36: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:755:36: note: Assignment 'bname=g_path_get_basename(path)', assigned value is 0 syncmaildir-1.3.0/mddiff.c:757:15: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/mddiff.c:771:23: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] head syncmaildir-1.3.0/mddiff.c:799:19: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] syncmaildir-1.3.0/mddiff.c:798:22: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:798:22: note: Assignment 'data=strdup(txtURL(paths[i],tmpbuff_5))', assigned value is 0 syncmaildir-1.3.0/mddiff.c:799:19: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/mddiff.c:983:59: warning: If memory allocation fails, then there is a possible null pointer dereference: bname [nullPointerOutOfMemory] syncmaildir-1.3.0/mddiff.c:981:35: note: Assuming allocation function fails syncmaildir-1.3.0/mddiff.c:981:35: note: Assignment 'bname=g_path_get_basename(argv0)', assigned value is 0 syncmaildir-1.3.0/mddiff.c:983:59: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:3481:26: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp19_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:3479:25: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:3479:25: note: Assignment '_tmp18_=g_strconcat("Unable to execute ",_tmp17_,NULL)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:3480:11: note: _tmp19_ is assigned '_tmp18_' here. syncmaildir-1.3.0/smd-applet.c:3481:26: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:3485:26: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp21_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:3481:25: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:3481:25: note: Assignment '_tmp20_=g_strconcat(_tmp19_,": ",NULL)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:3482:11: note: _tmp21_ is assigned '_tmp20_' here. syncmaildir-1.3.0/smd-applet.c:3485:26: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:3487:26: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp25_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:3485:25: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:3485:25: note: Assignment '_tmp24_=g_strconcat(_tmp21_,_tmp23_,NULL)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:3486:11: note: _tmp25_ is assigned '_tmp24_' here. syncmaildir-1.3.0/smd-applet.c:3487:26: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:3489:27: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp27_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:3487:25: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:3487:25: note: Assignment '_tmp26_=g_strconcat(_tmp25_,"\n",NULL)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:3488:11: note: _tmp27_ is assigned '_tmp26_' here. syncmaildir-1.3.0/smd-applet.c:3489:27: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:3635:26: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp63_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:3633:25: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:3633:25: note: Assignment '_tmp62_=g_strconcat("Unable to execute ",_tmp61_,NULL)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:3634:11: note: _tmp63_ is assigned '_tmp62_' here. syncmaildir-1.3.0/smd-applet.c:3635:26: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:3637:27: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp65_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:3635:25: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:3635:25: note: Assignment '_tmp64_=g_strconcat(_tmp63_,"\n",NULL)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:3636:11: note: _tmp65_ is assigned '_tmp64_' here. syncmaildir-1.3.0/smd-applet.c:3637:27: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:3642:7: warning: If memory allocation fails, then there is a possible null pointer dereference: _inner_error_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:3640:33: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:3640:33: note: Assignment '_tmp66_=g_error_new_literal(exit_quark(),EXIT_ABORT,"Unable to run smd-loop")', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:3641:17: note: _inner_error_ is assigned '_tmp66_' here. syncmaildir-1.3.0/smd-applet.c:3642:7: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:390:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_VARIANT_TYPE_TUPLE [valueFlowBailoutIncompleteVar] head syncmaildir-1.3.0/smd-applet.c:394:108: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] 2.17.0 syncmaildir-1.3.0/smd-applet.c:442:205: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] head syncmaildir-1.3.0/smd-applet.c:442:205: style: Parameter 'value' can be declared as pointer to const. However it seems that 'network_manager_dbus_interface_set_property' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] syncmaildir-1.3.0/smd-applet.c:300:166: note: You might need to cast the function pointer here syncmaildir-1.3.0/smd-applet.c:442:205: note: Parameter 'value' can be declared as pointer to const 2.17.0 syncmaildir-1.3.0/smd-applet.c:442:79: style: Parameter 'connection' can be declared as pointer to const [constParameterPointer] head syncmaildir-1.3.0/smd-applet.c:442:79: style: Parameter 'connection' can be declared as pointer to const. However it seems that 'network_manager_dbus_interface_set_property' is a callback function, if 'connection' is declared with const you might also need to cast function pointer(s). [constParameterCallback] syncmaildir-1.3.0/smd-applet.c:300:166: note: You might need to cast the function pointer here syncmaildir-1.3.0/smd-applet.c:442:79: note: Parameter 'connection' can be declared as pointer to const 2.17.0 syncmaildir-1.3.0/smd-applet.c:458:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_VARIANT_TYPE_TUPLE [valueFlowBailoutIncompleteVar] 2.17.0 syncmaildir-1.3.0/smd-applet.c:5027:46: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp41_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:5025:27: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:5025:27: note: Assignment '_tmp40_=g_strconcat(_tmp38_,_tmp39_,NULL)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5026:13: note: _tmp41_ is assigned '_tmp40_' here. syncmaildir-1.3.0/smd-applet.c:5027:46: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:5051:49: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp46_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:5047:26: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:5047:26: note: Assignment '_tmp45_=g_strconcat(_tmp43_,_tmp44_,NULL)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5048:12: note: _tmp46_ is assigned '_tmp45_' here. syncmaildir-1.3.0/smd-applet.c:5051:49: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:5335:24: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp1_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:5332:20: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:5332:20: note: Assignment '_tmp0_=g_strdup(SMD_CONF_PREFIX)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5333:11: note: Assignment 'PREFIX=_tmp0_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5334:9: note: _tmp1_ is assigned 'PREFIX' here. syncmaildir-1.3.0/smd-applet.c:5335:24: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:5363:79: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp10_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:5358:21: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:5358:21: note: Assignment '_tmp8_=g_strdup("./smd-loop")', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5360:29: note: Assignment 'smd_applet_smd_loop_cmd=_tmp8_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5362:11: note: _tmp10_ is assigned 'smd_applet_smd_loop_cmd' here. syncmaildir-1.3.0/smd-applet.c:5363:79: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:5369:85: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp13_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:5364:22: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:5364:22: note: Assignment '_tmp11_=g_strdup("./smd-applet.ui")', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5366:30: note: Assignment 'smd_applet_smd_applet_ui=_tmp11_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5368:11: note: _tmp13_ is assigned 'smd_applet_smd_applet_ui' here. syncmaildir-1.3.0/smd-applet.c:5369:85: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:5375:80: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp16_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:5370:22: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:5370:22: note: Assignment '_tmp14_=g_strdup("./smd-push")', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5372:29: note: Assignment 'smd_applet_smd_push_cmd=_tmp14_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5374:11: note: _tmp16_ is assigned 'smd_applet_smd_push_cmd' here. syncmaildir-1.3.0/smd-applet.c:5375:80: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:5381:90: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp19_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:5376:22: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:5376:22: note: Assignment '_tmp17_=g_strdup("./smd-applet.desktop")', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5378:35: note: Assignment 'smd_applet_smd_applet_desktop=_tmp17_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5380:11: note: _tmp19_ is assigned 'smd_applet_smd_applet_desktop' here. syncmaildir-1.3.0/smd-applet.c:5381:90: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:5412:25: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp30_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:5409:21: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:5409:21: note: Assignment '_tmp29_=g_strdup(_tmp28_)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5410:12: note: Assignment 'homedir=_tmp29_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5411:10: note: _tmp30_ is assigned 'homedir' here. syncmaildir-1.3.0/smd-applet.c:5412:25: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:5416:25: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp32_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:5409:21: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:5409:21: note: Assignment '_tmp29_=g_strdup(_tmp28_)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5410:12: note: Assignment 'homedir=_tmp29_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5415:10: note: _tmp32_ is assigned 'homedir' here. syncmaildir-1.3.0/smd-applet.c:5416:25: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:5420:25: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp34_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:5409:21: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:5409:21: note: Assignment '_tmp29_=g_strdup(_tmp28_)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5410:12: note: Assignment 'homedir=_tmp29_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5419:10: note: _tmp34_ is assigned 'homedir' here. syncmaildir-1.3.0/smd-applet.c:5420:25: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:5443:32: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp43_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:5431:25: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:5431:25: note: Assignment '_tmp40_=g_strconcat(_tmp39_,"/autostart/smd-applet.desktop",NULL)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5433:22: note: Assignment 'XDG_AUTORUN_FILE=_tmp40_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:5442:10: note: _tmp43_ is assigned 'XDG_AUTORUN_FILE' here. syncmaildir-1.3.0/smd-applet.c:5443:32: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:652:72: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp7_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:630:27: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:630:27: note: Assignment '_tmp1_=g_strdup_printf("Synchronize with %s:\n",_tmp0_)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:631:13: note: Assignment 'preamble=_tmp1_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:649:10: note: _tmp7_ is assigned 'preamble' here. syncmaildir-1.3.0/smd-applet.c:652:72: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:666:52: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp13_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:630:27: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:630:27: note: Assignment '_tmp1_=g_strdup_printf("Synchronize with %s:\n",_tmp0_)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:631:13: note: Assignment 'preamble=_tmp1_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:664:12: note: _tmp13_ is assigned 'preamble' here. syncmaildir-1.3.0/smd-applet.c:666:52: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:677:56: warning: If memory allocation fails, then there is a possible null pointer dereference: _tmp17_ [nullPointerOutOfMemory] syncmaildir-1.3.0/smd-applet.c:630:27: note: Assuming allocation function fails syncmaildir-1.3.0/smd-applet.c:630:27: note: Assignment '_tmp1_=g_strdup_printf("Synchronize with %s:\n",_tmp0_)', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:631:13: note: Assignment 'preamble=_tmp1_', assigned value is 0 syncmaildir-1.3.0/smd-applet.c:675:12: note: _tmp17_ is assigned 'preamble' here. syncmaildir-1.3.0/smd-applet.c:677:56: note: Null pointer dereference 2.17.0 syncmaildir-1.3.0/smd-applet.c:878:191: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value_event_lcopy_value [valueFlowBailoutIncompleteVar] head syncmaildir-1.3.0/smd-applet.c:880:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_FLAG_CLASSED [valueFlowBailoutIncompleteVar] head syncmaildir-1.3.0/smd-applet.c:890:9: style: Variable 'self' can be declared as pointer to const [constVariablePointer] head syncmaildir-1.3.0/smd-applet.c:983:4: warning: Return value of function g_file_get_contents() is not used. [ignoredReturnValue] head syncmaildir-1.3.0/smd-applet.c:997:4: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] DONE