2025-07-06 09:30 ftp://ftp.de.debian.org/debian/pool/main/u/ulatencyd/ulatencyd_0.5.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --library=gtk --library=motif --library=lua --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-63-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: 9b11b6b (2025-07-04 16:03:30 +0200) count: 309 321 elapsed-time: 4.4 4.4 head-timing-info: old-timing-info: head results: poelzi-ulatencyd-55515a9/modules/simplerules.c:116:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_OPTIMIZE [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/modules/simplerules.c:217:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/modules/simplerules.c:277:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_PATH [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/modules/simplerules.c:288:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMDLINE [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/modules/simplerules.c:366:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/modules/simplerules.c:376:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable config_data [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/modules/simplerules.c:246:17: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] poelzi-ulatencyd-55515a9/modules/simplerules.c:237:8: error: Memory leak: disabled [memleak] poelzi-ulatencyd-55515a9/modules/simplerules.c:146:13: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] poelzi-ulatencyd-55515a9/modules/simplerules.c:84:19: style: Variable 'key' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/modules/simplerules.c:216:33: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] poelzi-ulatencyd-55515a9/modules/simplerules.c:42:17: style: struct member 'simple_rule::gid' is never used. [unusedStructMember] poelzi-ulatencyd-55515a9/modules/simplerules.c:43:17: style: struct member 'simple_rule::uid' is never used. [unusedStructMember] poelzi-ulatencyd-55515a9/modules/simplerules.c:286:20: style: Variable 'match' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/modules/xwatch.c:109:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/modules/xwatch.c:461:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable U_session_list [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/modules/xwatch.c:541:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable config_data [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/modules/xwatch.c:166:8: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] poelzi-ulatencyd-55515a9/modules/xwatch.c:113:12: error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc] poelzi-ulatencyd-55515a9/modules/xwatch.c:500:22: style: Local variable 'xs' shadows outer variable [shadowVariable] poelzi-ulatencyd-55515a9/modules/xwatch.c:452:20: note: Shadowed declaration poelzi-ulatencyd-55515a9/modules/xwatch.c:500:22: note: Shadow variable poelzi-ulatencyd-55515a9/modules/xwatch.c:144:18: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/modules/xwatch.c:395:13: style: Variable 'pid' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/modules/xwatch.c:419:9: style: Variable 'client' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/modules/xwatch.c:450:14: style: Variable 'sess' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/lbc.c:316:20: error: There is an unknown macro here somewhere. Configuration is required. If LUA_VERSION is a macro then please configure it. [unknownMacro] poelzi-ulatencyd-55515a9/src/bc/number.c:58:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bc_struct [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:154:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUS [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:264:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MINUS [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:375:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASE [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:467:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASE [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:542:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUS [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:630:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bc_struct [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:665:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASE [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:699:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASE [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:860:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MINUS [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:901:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASE [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:940:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MINUS [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:1410:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASE [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:1446:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASE [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:1479:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUS [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:1551:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MINUS [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/bc/number.c:453:19: style: Condition 'n1->n_scale!=min_scale' is always true [knownConditionTrueFalse] poelzi-ulatencyd-55515a9/src/bc/number.c:433:13: note: min_scale is assigned '(n1->n_scale<(n2->n_scale))?(n1->n_scale):(n2->n_scale)' here. poelzi-ulatencyd-55515a9/src/bc/number.c:453:19: note: Condition 'n1->n_scale!=min_scale' is always true poelzi-ulatencyd-55515a9/src/bc/number.c:963:11: warning: If memory allocation fails, then there is a possible null pointer dereference: num1 [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/bc/number.c:961:35: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/bc/number.c:961:10: note: Assignment 'num1=(unsigned char*)malloc(n1->n_len+n1->n_scale+extra+2)', assigned value is 0 poelzi-ulatencyd-55515a9/src/bc/number.c:963:11: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/bc/number.c:969:11: warning: If memory allocation fails, then there is a possible null pointer dereference: num2 [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/bc/number.c:967:35: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/bc/number.c:967:10: note: Assignment 'num2=(unsigned char*)malloc(len2+1)', assigned value is 0 poelzi-ulatencyd-55515a9/src/bc/number.c:969:11: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/bc/number.c:972:11: warning: If memory allocation fails, then there is a possible null pointer dereference: n2ptr [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/bc/number.c:967:35: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/bc/number.c:967:10: note: Assignment 'num2=(unsigned char*)malloc(len2+1)', assigned value is 0 poelzi-ulatencyd-55515a9/src/bc/number.c:971:11: note: Assignment 'n2ptr=num2', assigned value is 0 poelzi-ulatencyd-55515a9/src/bc/number.c:972:11: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/bc/number.c:964:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] poelzi-ulatencyd-55515a9/src/bc/number.c:961:35: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/bc/number.c:961:10: note: Assignment 'num1=(unsigned char*)malloc(n1->n_len+n1->n_scale+extra+2)', assigned value is 0 poelzi-ulatencyd-55515a9/src/bc/number.c:964:15: note: Null pointer addition poelzi-ulatencyd-55515a9/src/bc/number.c:970:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] poelzi-ulatencyd-55515a9/src/bc/number.c:967:35: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/bc/number.c:967:10: note: Assignment 'num2=(unsigned char*)malloc(len2+1)', assigned value is 0 poelzi-ulatencyd-55515a9/src/bc/number.c:970:9: note: Null pointer addition poelzi-ulatencyd-55515a9/src/bc/number.c:148:9: style: Variable 'n1ptr' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:148:17: style: Variable 'n2ptr' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:274:9: style: Variable 'nptr' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:302:9: style: Variable 'nptr' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:333:9: style: Variable 'n1ptr' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:426:9: style: Variable 'n1ptr' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:426:17: style: Variable 'n2ptr' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:645:9: style: Variable 'n1ptr' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:645:17: style: Variable 'n2ptr' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:646:9: style: Variable 'n1end' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:646:17: style: Variable 'n2end' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:679:23: style: Variable 'valp' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:883:18: style: Variable 'nptr' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:923:25: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:1404:9: style: Variable 'nptr' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/bc/number.c:780:9: style: Variable 'u0len' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/src/bc/number.c:783:9: style: Variable 'v0len' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/src/core.c:583:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] poelzi-ulatencyd-55515a9/src/core.c:703:18: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] poelzi-ulatencyd-55515a9/src/core.c:162:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_DOMAIN [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:214:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:303:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:399:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:583:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:703:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:841:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCHED_FIFO [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:961:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:1042:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:1526:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:1548:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:1622:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MCL_CURRENT [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:1654:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:1718:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:1792:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_NPROCESSORS_ONLN [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:1846:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_GCCOLLECT [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/core.c:1758:7: warning: Return value of function dlerror() is not used. [ignoredReturnValue] poelzi-ulatencyd-55515a9/src/core.c:1684:15: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] poelzi-ulatencyd-55515a9/src/core.c:1744:11: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] poelzi-ulatencyd-55515a9/src/core.c:1395:10: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/core.c:1394:24: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/core.c:1394:24: note: Assignment 'rv=malloc(sizeof(struct u_filter))', assigned value is 0 poelzi-ulatencyd-55515a9/src/core.c:1395:10: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/core.c:1396:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/core.c:1394:24: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/core.c:1394:24: note: Assignment 'rv=malloc(sizeof(struct u_filter))', assigned value is 0 poelzi-ulatencyd-55515a9/src/core.c:1396:3: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/core.c:1446:12: warning: If memory allocation fails, then there is a possible null pointer dereference: flt_block [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/core.c:1445:23: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/core.c:1445:23: note: Assignment 'flt_block=malloc(sizeof(struct filter_block))', assigned value is 0 poelzi-ulatencyd-55515a9/src/core.c:1446:12: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/core.c:102:3: style: Unsigned expression 'uh->ref' can't be negative so it is unnecessary to test it. [unsignedPositive] poelzi-ulatencyd-55515a9/src/core.c:500:3: style: Unsigned expression 'uh->ref' can't be negative so it is unnecessary to test it. [unsignedPositive] poelzi-ulatencyd-55515a9/src/core.c:1276:7: style: Unsigned expression 'uh->ref' can't be negative so it is unnecessary to test it. [unsignedPositive] poelzi-ulatencyd-55515a9/src/core.c:1283:7: style: Unsigned expression 'uh->ref' can't be negative so it is unnecessary to test it. [unsignedPositive] poelzi-ulatencyd-55515a9/src/core.c:1349:1: style: Unsigned expression 'uh->ref' can't be negative so it is unnecessary to test it. [unsignedPositive] poelzi-ulatencyd-55515a9/src/core.c:1351:1: style: Unsigned expression 'uh->ref' can't be negative so it is unnecessary to test it. [unsignedPositive] poelzi-ulatencyd-55515a9/src/core.c:1353:1: style: Unsigned expression 'uh->ref' can't be negative so it is unnecessary to test it. [unsignedPositive] poelzi-ulatencyd-55515a9/src/core.c:1355:1: style: Unsigned expression 'uh->ref' can't be negative so it is unnecessary to test it. [unsignedPositive] poelzi-ulatencyd-55515a9/src/core.c:1363:7: style: Unsigned expression 'uh->ref' can't be negative so it is unnecessary to test it. [unsignedPositive] poelzi-ulatencyd-55515a9/src/core.c:1373:7: style: Unsigned expression 'uh->ref' can't be negative so it is unnecessary to test it. [unsignedPositive] poelzi-ulatencyd-55515a9/src/core.c:1149:40: style:inconclusive: Function 'process_new_list' argument 2 names different: declaration 'noupdate' definition 'update'. [funcArgNamesDifferent] poelzi-ulatencyd-55515a9/src/ulatency.h:390:40: note: Function 'process_new_list' argument 2 names different: declaration 'noupdate' definition 'update'. poelzi-ulatencyd-55515a9/src/core.c:1149:40: note: Function 'process_new_list' argument 2 names different: declaration 'noupdate' definition 'update'. poelzi-ulatencyd-55515a9/src/core.c:1204:24: style:inconclusive: Function 'u_flag_free' argument 1 names different: declaration 'data' definition 'ptr'. [funcArgNamesDifferent] poelzi-ulatencyd-55515a9/src/ulatency.h:229:24: note: Function 'u_flag_free' argument 1 names different: declaration 'data' definition 'ptr'. poelzi-ulatencyd-55515a9/src/core.c:1204:24: note: Function 'u_flag_free' argument 1 names different: declaration 'data' definition 'ptr'. poelzi-ulatencyd-55515a9/src/core.c:1349:1: style:inconclusive: Function 'u_flag_clear_source' argument 2 names different: declaration 'source' definition 'var'. [funcArgNamesDifferent] poelzi-ulatencyd-55515a9/src/ulatency.h:233:51: note: Function 'u_flag_clear_source' argument 2 names different: declaration 'source' definition 'var'. poelzi-ulatencyd-55515a9/src/core.c:1349:1: note: Function 'u_flag_clear_source' argument 2 names different: declaration 'source' definition 'var'. poelzi-ulatencyd-55515a9/src/core.c:1353:1: style:inconclusive: Function 'u_flag_clear_flag' argument 2 names different: declaration 'flag' definition 'var'. [funcArgNamesDifferent] poelzi-ulatencyd-55515a9/src/ulatency.h:236:49: note: Function 'u_flag_clear_flag' argument 2 names different: declaration 'flag' definition 'var'. poelzi-ulatencyd-55515a9/src/core.c:1353:1: note: Function 'u_flag_clear_flag' argument 2 names different: declaration 'flag' definition 'var'. poelzi-ulatencyd-55515a9/src/core.c:1355:1: style:inconclusive: Function 'u_flag_clear_timeout' argument 2 names different: declaration 'timeout' definition 'tm'. [funcArgNamesDifferent] poelzi-ulatencyd-55515a9/src/ulatency.h:237:47: note: Function 'u_flag_clear_timeout' argument 2 names different: declaration 'timeout' definition 'tm'. poelzi-ulatencyd-55515a9/src/core.c:1355:1: note: Function 'u_flag_clear_timeout' argument 2 names different: declaration 'timeout' definition 'tm'. poelzi-ulatencyd-55515a9/src/core.c:1633:32: style:inconclusive: Function 'scheduler_set' argument 1 names different: declaration 'scheduler' definition 'sched'. [funcArgNamesDifferent] poelzi-ulatencyd-55515a9/src/ulatency.h:418:32: note: Function 'scheduler_set' argument 1 names different: declaration 'scheduler' definition 'sched'. poelzi-ulatencyd-55515a9/src/core.c:1633:32: note: Function 'scheduler_set' argument 1 names different: declaration 'scheduler' definition 'sched'. poelzi-ulatencyd-55515a9/src/core.c:1715:24: style:inconclusive: Function 'load_modules' argument 1 names different: declaration 'path' definition 'modules_directory'. [funcArgNamesDifferent] poelzi-ulatencyd-55515a9/src/ulatency.h:348:24: note: Function 'load_modules' argument 1 names different: declaration 'path' definition 'modules_directory'. poelzi-ulatencyd-55515a9/src/core.c:1715:24: note: Function 'load_modules' argument 1 names different: declaration 'path' definition 'modules_directory'. poelzi-ulatencyd-55515a9/src/core.c:157:22: style: Variable 'cur' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/core.c:178:22: style: Variable 'cur' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/core.c:255:28: style: Parameter 'proc' can be declared as pointer to const [constParameterPointer] poelzi-ulatencyd-55515a9/src/core.c:444:22: style: Variable 'dit' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/core.c:504:45: style: Parameter 'array' can be declared as pointer to const [constParameterPointer] poelzi-ulatencyd-55515a9/src/core.c:642:35: style: Parameter 'old' can be declared as pointer to const [constParameterPointer] poelzi-ulatencyd-55515a9/src/core.c:642:48: style: Parameter 'new' can be declared as pointer to const [constParameterPointer] poelzi-ulatencyd-55515a9/src/core.c:662:52: style: Parameter 'key' can be declared as pointer to const. However it seems that 'processes_is_last_changed' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] poelzi-ulatencyd-55515a9/src/core.c:905:33: note: You might need to cast the function pointer here poelzi-ulatencyd-55515a9/src/core.c:662:52: note: Parameter 'key' can be declared as pointer to const poelzi-ulatencyd-55515a9/src/core.c:664:11: style: Variable 'proc' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/core.c:717:52: style: Parameter 'key' can be declared as pointer to const. However it seems that '_clear_skip_filters_types' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] poelzi-ulatencyd-55515a9/src/core.c:736:31: note: You might need to cast the function pointer here poelzi-ulatencyd-55515a9/src/core.c:717:52: note: Parameter 'key' can be declared as pointer to const poelzi-ulatencyd-55515a9/src/core.c:718:24: style: Variable 'fb' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/core.c:719:8: style: Variable 'block_type' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/core.c:770:56: style: Parameter 'parent' can be declared as pointer to const [constParameterPointer] poelzi-ulatencyd-55515a9/src/core.c:1292:11: style: Variable 'flg' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/core.c:1301:11: style: Variable 'flg' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/core.c:1311:11: style: Variable 'flg' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/core.c:1317:11: style: Variable 'flg' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/core.c:1389:26: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'u_filter_free' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] poelzi-ulatencyd-55515a9/src/core.c:1396:18: note: You might need to cast the function pointer here poelzi-ulatencyd-55515a9/src/core.c:1389:26: note: Parameter 'ptr' can be declared as pointer to const poelzi-ulatencyd-55515a9/src/core.c:1465:10: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/core.c:1520:43: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] poelzi-ulatencyd-55515a9/src/core.c:1633:32: style: Parameter 'sched' can be declared as pointer to const [constParameterPointer] poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:73:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:147:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:50:12: warning: If memory allocation fails, then there is a possible null pointer dereference: trimmed_name [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:49:25: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:49:25: note: Assignment 'trimmed_name=malloc(sizeof(UT_USER(ut))+1)', assigned value is 0 poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:50:12: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:54:3: warning: If memory allocation fails, then there is a possible null pointer dereference: trimmed_name [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:49:25: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:49:25: note: Assignment 'trimmed_name=malloc(sizeof(UT_USER(ut))+1)', assigned value is 0 poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:54:3: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:55:35: warning: If memory allocation fails, then there is a possible null pointer dereference: trimmed_name [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:49:25: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:49:25: note: Assignment 'trimmed_name=malloc(sizeof(UT_USER(ut))+1)', assigned value is 0 poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:55:35: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:55:25: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:49:25: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:49:25: note: Assignment 'trimmed_name=malloc(sizeof(UT_USER(ut))+1)', assigned value is 0 poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:55:25: note: Null pointer addition poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:58:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] poelzi-ulatencyd-55515a9/src/coreutils/xmalloc.c:43:17: style:inconclusive: Function 'xmalloc' argument 1 names different: declaration 's' definition 'n'. [funcArgNamesDifferent] poelzi-ulatencyd-55515a9/src/coreutils/xalloc.h:56:23: note: Function 'xmalloc' argument 1 names different: declaration 's' definition 'n'. poelzi-ulatencyd-55515a9/src/coreutils/xmalloc.c:43:17: note: Function 'xmalloc' argument 1 names different: declaration 's' definition 'n'. poelzi-ulatencyd-55515a9/src/coreutils/xmalloc.c:55:27: style:inconclusive: Function 'xrealloc' argument 2 names different: declaration 's' definition 'n'. [funcArgNamesDifferent] poelzi-ulatencyd-55515a9/src/coreutils/xalloc.h:59:33: note: Function 'xrealloc' argument 2 names different: declaration 's' definition 'n'. poelzi-ulatencyd-55515a9/src/coreutils/xmalloc.c:55:27: note: Function 'xrealloc' argument 2 names different: declaration 's' definition 'n'. poelzi-ulatencyd-55515a9/src/coreutils/xmalloc.c:115:22: style:inconclusive: Function 'xstrdup' argument 1 names different: declaration 'str' definition 'string'. [funcArgNamesDifferent] poelzi-ulatencyd-55515a9/src/coreutils/xalloc.h:62:28: note: Function 'xstrdup' argument 1 names different: declaration 'str' definition 'string'. poelzi-ulatencyd-55515a9/src/coreutils/xmalloc.c:115:22: note: Function 'xstrdup' argument 1 names different: declaration 'str' definition 'string'. poelzi-ulatencyd-55515a9/src/dbus.c:705:43: error: syntax error [syntaxError] poelzi-ulatencyd-55515a9/src/group.c:140:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/group.c:114:10: style: Variable 'ups' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/group.c:127:28: style: Parameter 'proc' can be declared as pointer to const [constParameterPointer] poelzi-ulatencyd-55515a9/src/linux_netlink.c:77:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_DOMAIN [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/linux_netlink.c:141:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cn_msg [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/linux_netlink.c:212:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cn_msg [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/linux_netlink.c:229:3: error: Resource leak: socket_fd [resourceLeak] poelzi-ulatencyd-55515a9/src/linux_netlink.c:227:45: error: Null pointer dereference: error [nullPointer] poelzi-ulatencyd-55515a9/src/linux_netlink.c:208:18: note: Assignment 'error=NULL', assigned value is 0 poelzi-ulatencyd-55515a9/src/linux_netlink.c:227:45: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/lua_binding.c:2150:3: error: syntax error [syntaxError] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:82:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TUSERDATA [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:121:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TUSERDATA [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:629:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGFLAG_DELETE_IGNORE_MIGRATION [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:101:20: style: Variable 'group' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:138:20: style: Variable 'group' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:507:20: style: Variable 'uc' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:519:31: style: Variable 'uc' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:265:107: style: Variable 'para' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:265:140: style: Variable 'rv' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:265:102: style: Variable 'para' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:285:12: style: Variable 'para' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:286:10: style: Variable 'rv' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/src/lua_cgroup.c:285:7: style: Variable 'para' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/src/proc/alloc.c:18:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/alloc.c:32:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/alloc.c:46:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/alloc.c:32:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/alloc.c:46:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/alloc.c:30:12: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/proc/alloc.c:29:15: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/proc/alloc.c:29:15: note: Assignment 'p=malloc(size)', assigned value is 0 poelzi-ulatencyd-55515a9/src/proc/alloc.c:30:12: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/proc/devname.c:64:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/devname.c:125:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:206:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:209:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:211:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:212:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:213:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:214:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:215:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:216:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:217:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:218:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:219:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:220:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:221:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:222:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:223:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:224:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:225:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:226:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:228:22: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:229:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:230:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:231:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:232:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:233:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:234:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:235:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:236:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:244:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:245:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:246:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:247:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:248:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:249:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/devname.c:79:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmn [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/proc/devname.c:78:17: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/proc/devname.c:78:17: note: Assignment 'tmn=calloc(1,sizeof(struct tty_map_node))', assigned value is 0 poelzi-ulatencyd-55515a9/src/proc/devname.c:79:5: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/proc/escape.c:162:89: style:inconclusive: Function 'escape_strlist' argument 3 names different: declaration 'n' definition 'bytes'. [funcArgNamesDifferent] poelzi-ulatencyd-55515a9/src/proc/escape.h:17:96: note: Function 'escape_strlist' argument 3 names different: declaration 'n' definition 'bytes'. poelzi-ulatencyd-55515a9/src/proc/escape.c:162:89: note: Function 'escape_strlist' argument 3 names different: declaration 'n' definition 'bytes'. poelzi-ulatencyd-55515a9/src/proc/ksym.c:236:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/ksym.c:322:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/ksym.c:346:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/ksym.c:478:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/ksym.c:557:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/ksym.c:598:6: style: Condition '!~address' is always false [knownConditionTrueFalse] poelzi-ulatencyd-55515a9/src/proc/ksym.c:556:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/ksym.c:354:10: warning: If memory allocation fails, then there is a possible null pointer dereference: endp [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/proc/ksym.c:352:14: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/proc/ksym.c:352:14: note: Assignment 'endp=mmap(0,sbuf.st_size+1,PROT_READ|PROT_WRITE,MAP_PRIVATE,fd,0)', assigned value is 0 poelzi-ulatencyd-55515a9/src/proc/ksym.c:354:10: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/proc/ksym.c:282:9: style: Variable 'total' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/src/proc/ksym.c:534:20: style: Variable 'did_ksyms' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/src/proc/pwcache.c:42:10: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] poelzi-ulatencyd-55515a9/src/proc/pwcache.c:70:10: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] poelzi-ulatencyd-55515a9/src/proc/pwcache.c:41:6: warning: If memory allocation fails, then there is a possible null pointer dereference: *p [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/proc/pwcache.c:40:34: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/proc/pwcache.c:40:10: note: Assignment '*p=(struct pwbuf*)xmalloc(sizeof(struct pwbuf))', assigned value is 0 poelzi-ulatencyd-55515a9/src/proc/pwcache.c:41:6: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/proc/pwcache.c:69:6: warning: If memory allocation fails, then there is a possible null pointer dereference: *g [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/proc/pwcache.c:68:34: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/proc/pwcache.c:68:10: note: Assignment '*g=(struct grpbuf*)malloc(sizeof(struct grpbuf))', assigned value is 0 poelzi-ulatencyd-55515a9/src/proc/pwcache.c:69:6: note: Null pointer dereference poelzi-ulatencyd-55515a9/src/proc/pwcache.c:32:20: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/proc/pwcache.c:60:19: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/proc/readproc.c:110:7: error: syntax error [syntaxError] poelzi-ulatencyd-55515a9/src/proc/sig.c:176:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sig.c:237:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/slab.c:156:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/slab.c:232:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/slab.c:289:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/slab.c:314:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/slab.c:147:14: warning: %d in format string (no. 2) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:147:14: warning: %d in format string (no. 3) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:147:14: warning: %d in format string (no. 4) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:147:14: warning: %d in format string (no. 5) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:147:14: warning: %d in format string (no. 6) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:147:14: warning: %d in format string (no. 7) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:147:14: warning: %d in format string (no. 8) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:224:14: warning: %d in format string (no. 2) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:224:14: warning: %d in format string (no. 3) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:224:14: warning: %d in format string (no. 4) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:224:14: warning: %d in format string (no. 5) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:224:14: warning: %d in format string (no. 6) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:224:14: warning: %d in format string (no. 7) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] poelzi-ulatencyd-55515a9/src/proc/slab.c:315:3: error: Resource leak: slabfile [resourceLeak] poelzi-ulatencyd-55515a9/src/proc/slab.c:320:3: error: Resource leak: slabfile [resourceLeak] poelzi-ulatencyd-55515a9/src/proc/slab.c:331:3: error: Resource leak: slabfile [resourceLeak] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:79:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:135:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_NUMERIC [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:228:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_NPROCESSORS_ONLN [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:325:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:366:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:405:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:605:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:760:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:816:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:833:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:905:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:928:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:173:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:173:5: warning: %Ld in format string (no. 2) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:77:20: style: Variable 'savelocale' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:131:18: style: Variable 'savelocale' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:323:20: style: Variable 'savelocale' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:349:18: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:359:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:814:26: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] poelzi-ulatencyd-55515a9/src/proc/version.c:20:49: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] poelzi-ulatencyd-55515a9/src/proc/whattime.c:69:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USER_PROCESS [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/proc/whattime.c:42:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] poelzi-ulatencyd-55515a9/src/proc/whattime.c:31:16: style: Variable 'utmpstruct' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/proc/whattime.c:34:14: style: Variable 'realtime' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/proc/whattime.c:79:7: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/src/sysctl.c:53:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __NR_ioprio_set [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/sysctl.c:58:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __NR_ioprio_get [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/sysctl.c:110:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/sysctl.c:138:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NOFOLLOW [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/sysctl.c:142:5: error: Mismatching allocation and deallocation: path [mismatchAllocDealloc] poelzi-ulatencyd-55515a9/src/sysctl.c:136:10: note: Mismatching allocation and deallocation: path poelzi-ulatencyd-55515a9/src/sysctl.c:142:5: note: Mismatching allocation and deallocation: path poelzi-ulatencyd-55515a9/src/sysctl.c:145:3: error: Mismatching allocation and deallocation: path [mismatchAllocDealloc] poelzi-ulatencyd-55515a9/src/sysctl.c:136:10: note: Mismatching allocation and deallocation: path poelzi-ulatencyd-55515a9/src/sysctl.c:145:3: note: Mismatching allocation and deallocation: path poelzi-ulatencyd-55515a9/src/sysctl.c:164:9: error: Memory leak: path [memleak] poelzi-ulatencyd-55515a9/src/sysinfo.c:204:20: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] poelzi-ulatencyd-55515a9/src/sysinfo.c:204:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/sysinfo.c:238:22: style: Variable 'dit' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/tools.c:19:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FTS_NOCHDIR [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/tools.c:20:9: error: Null pointer dereference [nullPointer] poelzi-ulatencyd-55515a9/src/tools.c:11:13: style: Variable 'ftsent' can be declared as pointer to const [constVariablePointer] poelzi-ulatencyd-55515a9/src/ulatencyd.c:140:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gunichar [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/ulatencyd.c:189:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_FLAG_FATAL [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/ulatencyd.c:278:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/ulatencyd.c:300:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_KEY_FILE_KEEP_COMMENTS [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/ulatencyd.c:539:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/src/ulatencyd.c:593:3: error: Memory leak: context [memleak] poelzi-ulatencyd-55515a9/src/ulatencyd.c:78:84: style: Parameter 'data' can be declared as pointer to const. However it seems that 'opt_verbose' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] poelzi-ulatencyd-55515a9/src/ulatencyd.c:101:73: note: You might need to cast the function pointer here poelzi-ulatencyd-55515a9/src/ulatencyd.c:78:84: note: Parameter 'data' can be declared as pointer to const poelzi-ulatencyd-55515a9/src/ulatencyd.c:87:82: style: Parameter 'data' can be declared as pointer to const. However it seems that 'opt_quiet' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] poelzi-ulatencyd-55515a9/src/ulatencyd.c:102:71: note: You might need to cast the function pointer here poelzi-ulatencyd-55515a9/src/ulatencyd.c:87:82: note: Parameter 'data' can be declared as pointer to const poelzi-ulatencyd-55515a9/src/ulatencyd.c:271:31: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] poelzi-ulatencyd-55515a9/src/ulatencyd.c:431:27: style: Parameter 'data' can be declared as pointer to const. However it seems that 'timeout_long' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] poelzi-ulatencyd-55515a9/src/ulatencyd.c:587:29: note: You might need to cast the function pointer here poelzi-ulatencyd-55515a9/src/ulatencyd.c:431:27: note: Parameter 'data' can be declared as pointer to const poelzi-ulatencyd-55515a9/tests/forkbomb.c:41:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/tests/forkbomb.c:142:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] poelzi-ulatencyd-55515a9/tests/forkbomb.c:50:28: style: Variable 'long_options' can be declared as const array [constVariable] poelzi-ulatencyd-55515a9/tests/forkbomb.c:36:9: style: Variable 'c' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/tests/forkbomb.c:134:18: style: Variable 'tmpi' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/tests/memleak.c:66:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/tests/memleak.c:149:13: warning: Return value of function memcmp() is not used. [ignoredReturnValue] poelzi-ulatencyd-55515a9/tests/memleak.c:152:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] poelzi-ulatencyd-55515a9/tests/memleak.c:138:23: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/tests/memleak.c:137:19: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/tests/memleak.c:137:19: note: Assignment 'tmp=malloc(chunk*1024)', assigned value is 0 poelzi-ulatencyd-55515a9/tests/memleak.c:138:23: note: Null pointer dereference poelzi-ulatencyd-55515a9/tests/memleak.c:145:18: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/tests/memleak.c:128:22: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/tests/memleak.c:128:22: note: Assignment 'ptr=malloc(sizeof(void*)*nums)', assigned value is 0 poelzi-ulatencyd-55515a9/tests/memleak.c:145:18: note: Null pointer dereference poelzi-ulatencyd-55515a9/tests/memleak.c:48:28: style: Variable 'long_options' can be declared as const array [constVariable] poelzi-ulatencyd-55515a9/tests/memleak.c:130:8: style: Variable 'cmp' can be declared as const array [constVariable] poelzi-ulatencyd-55515a9/tests/memleak.c:147:25: portability: 'ttmp' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] poelzi-ulatencyd-55515a9/tests/memleak.c:147:42: portability: 'ttmp+(rand()%chunk)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] poelzi-ulatencyd-55515a9/tests/memleak.c:149:25: portability: 'ttmp' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] poelzi-ulatencyd-55515a9/tests/memleak.c:149:42: portability: 'ttmp+(rand()%chunk)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] poelzi-ulatencyd-55515a9/tests/memleak.c:36:9: style: Variable 'c' is assigned a value that is never used. [unreadVariable] poelzi-ulatencyd-55515a9/tests/test_xwatch.c:43:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBUS_BUS_SYSTEM [valueFlowBailoutIncompleteVar] poelzi-ulatencyd-55515a9/tests/test_xwatch.c:37:22: style: Unused variable: xs [unusedVariable] diff: 2.17.0 poelzi-ulatencyd-55515a9/modules/simplerules.c:246:43: warning: If memory allocation fails, then there is a possible null pointer dereference: rule_name [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/modules/simplerules.c:243:32: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/modules/simplerules.c:243:32: note: Assignment 'rule_name=g_strndup(namelist[i]->d_name,strlen(namelist[i]->d_name)-4)', assigned value is 0 poelzi-ulatencyd-55515a9/modules/simplerules.c:246:43: note: Null pointer dereference 2.17.0 poelzi-ulatencyd-55515a9/src/bc/number.c:964:15: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] poelzi-ulatencyd-55515a9/src/bc/number.c:961:35: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/bc/number.c:961:10: note: Assignment 'num1=(unsigned char*)malloc(n1->n_len+n1->n_scale+extra+2)', assigned value is 0 poelzi-ulatencyd-55515a9/src/bc/number.c:964:15: note: Null pointer addition head poelzi-ulatencyd-55515a9/src/bc/number.c:964:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] poelzi-ulatencyd-55515a9/src/bc/number.c:961:35: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/bc/number.c:961:10: note: Assignment 'num1=(unsigned char*)malloc(n1->n_len+n1->n_scale+extra+2)', assigned value is 0 poelzi-ulatencyd-55515a9/src/bc/number.c:964:15: note: Null pointer addition 2.17.0 poelzi-ulatencyd-55515a9/src/bc/number.c:970:9: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] poelzi-ulatencyd-55515a9/src/bc/number.c:967:35: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/bc/number.c:967:10: note: Assignment 'num2=(unsigned char*)malloc(len2+1)', assigned value is 0 poelzi-ulatencyd-55515a9/src/bc/number.c:970:9: note: Null pointer addition head poelzi-ulatencyd-55515a9/src/bc/number.c:970:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] poelzi-ulatencyd-55515a9/src/bc/number.c:967:35: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/bc/number.c:967:10: note: Assignment 'num2=(unsigned char*)malloc(len2+1)', assigned value is 0 poelzi-ulatencyd-55515a9/src/bc/number.c:970:9: note: Null pointer addition 2.17.0 poelzi-ulatencyd-55515a9/src/core.c:1735:17: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 poelzi-ulatencyd-55515a9/src/core.c:1744:37: warning: If memory allocation fails, then there is a possible null pointer dereference: module_name [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/core.c:1741:28: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/core.c:1741:28: note: Assignment 'module_name=g_strndup(dit->d_name,strlen(dit->d_name)-3)', assigned value is 0 poelzi-ulatencyd-55515a9/src/core.c:1744:37: note: Null pointer dereference 2.17.0 poelzi-ulatencyd-55515a9/src/core.c:408:24: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/core.c:407:32: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/core.c:407:32: note: Assignment 'path=g_strdup_printf("/proc/%u/exe",(unsigned int)proc->pid)', assigned value is 0 poelzi-ulatencyd-55515a9/src/core.c:408:24: note: Null pointer dereference 2.17.0 poelzi-ulatencyd-55515a9/src/core.c:448:19: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/core.c:447:33: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/core.c:447:33: note: Assignment 'path=g_strdup_printf("/proc/%d/task",proc->pid)', assigned value is 0 poelzi-ulatencyd-55515a9/src/core.c:448:19: note: Null pointer dereference 2.17.0 poelzi-ulatencyd-55515a9/src/core.c:453:19: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:55:25: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:49:25: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:49:25: note: Assignment 'trimmed_name=malloc(sizeof(UT_USER(ut))+1)', assigned value is 0 poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:55:25: note: Null pointer addition head poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:55:25: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:49:25: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:49:25: note: Assignment 'trimmed_name=malloc(sizeof(UT_USER(ut))+1)', assigned value is 0 poelzi-ulatencyd-55515a9/src/coreutils/readutmp.c:55:25: note: Null pointer addition head poelzi-ulatencyd-55515a9/src/lua_cgroup.c:265:102: style: Variable 'para' is assigned a value that is never used. [unreadVariable] head poelzi-ulatencyd-55515a9/src/lua_cgroup.c:285:7: style: Variable 'para' is assigned a value that is never used. [unreadVariable] 2.17.0 poelzi-ulatencyd-55515a9/src/proc/sysinfo.c:357:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 poelzi-ulatencyd-55515a9/src/sysctl.c:138:16: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/sysctl.c:136:25: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/sysctl.c:136:25: note: Assignment 'path=g_strdup_printf("/proc/%d/oom_score_adj",pid)', assigned value is 0 poelzi-ulatencyd-55515a9/src/sysctl.c:138:16: note: Null pointer dereference 2.17.0 poelzi-ulatencyd-55515a9/src/sysinfo.c:123:25: warning: If memory allocation fails, then there is a possible null pointer dereference: prefix [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/sysinfo.c:122:30: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/sysinfo.c:122:30: note: Assignment 'prefix=g_strdup_printf("%s=",var)', assigned value is 0 poelzi-ulatencyd-55515a9/src/sysinfo.c:123:25: note: Null pointer dereference 2.17.0 poelzi-ulatencyd-55515a9/src/sysinfo.c:243:19: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 poelzi-ulatencyd-55515a9/src/ulatencyd.c:134:19: warning: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/ulatencyd.c:245:24: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/ulatencyd.c:245:24: note: Assignment 'msg=g_string_new(message)', assigned value is 0 poelzi-ulatencyd-55515a9/src/ulatencyd.c:246:20: note: Calling function 'escape_string', 1st argument 'msg' value is 0 poelzi-ulatencyd-55515a9/src/ulatencyd.c:134:19: note: Null pointer dereference 2.17.0 poelzi-ulatencyd-55515a9/src/ulatencyd.c:137:14: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/ulatencyd.c:245:24: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/ulatencyd.c:245:24: note: Assignment 'msg=g_string_new(message)', assigned value is 0 poelzi-ulatencyd-55515a9/src/ulatencyd.c:246:20: note: Calling function 'escape_string', 1st argument 'msg' value is 0 poelzi-ulatencyd-55515a9/src/ulatencyd.c:137:14: note: Null pointer dereference 2.17.0 poelzi-ulatencyd-55515a9/src/ulatencyd.c:248:31: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/ulatencyd.c:245:24: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/ulatencyd.c:245:24: note: Assignment 'msg=g_string_new(message)', assigned value is 0 poelzi-ulatencyd-55515a9/src/ulatencyd.c:248:31: note: Null pointer dereference 2.17.0 poelzi-ulatencyd-55515a9/src/ulatencyd.c:559:14: warning: If memory allocation fails, then there is a possible null pointer dereference: config_cgroup_root [nullPointerOutOfMemory] poelzi-ulatencyd-55515a9/src/ulatencyd.c:556:32: note: Assuming allocation function fails poelzi-ulatencyd-55515a9/src/ulatencyd.c:556:32: note: Assignment 'config_cgroup_root=g_strdup(lua_tostring(lua_main_state,-1))', assigned value is 0 poelzi-ulatencyd-55515a9/src/ulatencyd.c:559:14: note: Null pointer dereference DONE