2026-05-03 03:12 ftp://ftp.de.debian.org/debian/pool/main/libd/libdockapp/libdockapp_0.7.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 113 82 elapsed-time: 0.6 0.5 head-timing-info: old-timing-info: head results: libdockapp-0.7.3/examples/basic/basic.c:79:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DADisplay [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/basic/basic.c:139:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCGraphicsExposures [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/basic/basic.c:205:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DADisplay [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/basic/basic.c:212:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DADisplay [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:128:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DAActionRect [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:254:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCBackground [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:362:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DADisplay [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:408:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rect [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:425:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rect [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:526:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DADisplay [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:537:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DADisplay [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:559:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DADisplay [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:581:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DADisplay [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:596:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DADisplay [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:611:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DADisplay [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:635:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DADisplay [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/examples/rectangles/rectangles.c:129:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buttonPressRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:128:27: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:128:27: note: Assignment 'buttonPressRects=malloc(3*sizeof(DAActionRect))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:129:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:130:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buttonPressRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:128:27: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:128:27: note: Assignment 'buttonPressRects=malloc(3*sizeof(DAActionRect))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:130:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:131:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buttonPressRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:128:27: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:128:27: note: Assignment 'buttonPressRects=malloc(3*sizeof(DAActionRect))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:131:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:134:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buttonReleaseRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:133:29: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:133:29: note: Assignment 'buttonReleaseRects=malloc(2*sizeof(DAActionRect))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:134:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:135:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buttonReleaseRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:133:29: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:133:29: note: Assignment 'buttonReleaseRects=malloc(2*sizeof(DAActionRect))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:135:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:138:2: warning: If memory allocation fails, then there is a possible null pointer dereference: mouseMoveRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:137:25: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:137:25: note: Assignment 'mouseMoveRects=malloc(sizeof(DAActionRect))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:138:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:141:2: warning: If memory allocation fails, then there is a possible null pointer dereference: mouseEnterRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:140:26: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:140:26: note: Assignment 'mouseEnterRects=malloc(sizeof(DAActionRect))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:141:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:144:2: warning: If memory allocation fails, then there is a possible null pointer dereference: mouseLeaveRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:143:26: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:143:26: note: Assignment 'mouseLeaveRects=malloc(2*sizeof(DAActionRect))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:144:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:145:2: warning: If memory allocation fails, then there is a possible null pointer dereference: mouseLeaveRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:143:26: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:143:26: note: Assignment 'mouseLeaveRects=malloc(2*sizeof(DAActionRect))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:145:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:152:2: warning: If memory allocation fails, then there is a possible null pointer dereference: actionRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:151:22: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:151:22: note: Assignment 'actionRects=malloc(6*sizeof(DAActionRect*))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:152:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:153:2: warning: If memory allocation fails, then there is a possible null pointer dereference: actionRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:151:22: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:151:22: note: Assignment 'actionRects=malloc(6*sizeof(DAActionRect*))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:153:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:154:2: warning: If memory allocation fails, then there is a possible null pointer dereference: actionRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:151:22: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:151:22: note: Assignment 'actionRects=malloc(6*sizeof(DAActionRect*))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:154:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:155:2: warning: If memory allocation fails, then there is a possible null pointer dereference: actionRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:151:22: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:151:22: note: Assignment 'actionRects=malloc(6*sizeof(DAActionRect*))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:155:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:156:2: warning: If memory allocation fails, then there is a possible null pointer dereference: actionRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:151:22: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:151:22: note: Assignment 'actionRects=malloc(6*sizeof(DAActionRect*))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:156:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:157:2: warning: If memory allocation fails, then there is a possible null pointer dereference: actionRects [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:151:22: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:151:22: note: Assignment 'actionRects=malloc(6*sizeof(DAActionRect*))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:157:2: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:384:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] libdockapp-0.7.3/examples/rectangles/rectangles.c:382:20: note: Assuming allocation function fails libdockapp-0.7.3/examples/rectangles/rectangles.c:382:20: note: Assignment 'data=malloc(sizeof(int*))', assigned value is 0 libdockapp-0.7.3/examples/rectangles/rectangles.c:384:3: note: Null pointer dereference libdockapp-0.7.3/examples/rectangles/rectangles.c:357:20: style:inconclusive: Function 'setPointerColor' argument 1 names different: declaration '' definition 'color'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/examples/rectangles/rectangles.c:243:17: style: Local variable 'colors' shadows outer variable [shadowVariable] libdockapp-0.7.3/examples/rectangles/rectangles.c:48:16: note: Shadowed declaration libdockapp-0.7.3/examples/rectangles/rectangles.c:243:17: note: Shadow variable libdockapp-0.7.3/examples/rectangles/rectangles.c:463:8: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] libdockapp-0.7.3/examples/rectangles/rectangles.c:510:51: style: Parameter 'data' can be declared as pointer to const. However it seems that 'sliderEnter' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libdockapp-0.7.3/examples/rectangles/rectangles.c:141:45: note: You might need to cast the function pointer here libdockapp-0.7.3/examples/rectangles/rectangles.c:510:51: note: Parameter 'data' can be declared as pointer to const libdockapp-0.7.3/examples/rectangles/rectangles.c:513:51: style: Parameter 'data' can be declared as pointer to const. However it seems that 'sliderLeave' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libdockapp-0.7.3/examples/rectangles/rectangles.c:145:45: note: You might need to cast the function pointer here libdockapp-0.7.3/examples/rectangles/rectangles.c:513:51: note: Parameter 'data' can be declared as pointer to const libdockapp-0.7.3/examples/rectangles/rectangles.c:382:7: warning: Size of pointer 'data' used instead of size of its data. [pointerSize] libdockapp-0.7.3/src/daargs.c:208:9: warning: If memory allocation fails, then there is a possible null pointer dereference: context [nullPointerOutOfMemory] libdockapp-0.7.3/src/daargs.c:206:36: note: Assuming allocation function fails libdockapp-0.7.3/src/daargs.c:206:36: note: Assignment 'context=malloc(sizeof(struct DAContext))', assigned value is 0 libdockapp-0.7.3/src/daargs.c:208:9: note: Null pointer dereference libdockapp-0.7.3/src/daargs.c:210:2: warning: If memory allocation fails, then there is a possible null pointer dereference: context [nullPointerOutOfMemory] libdockapp-0.7.3/src/daargs.c:206:36: note: Assuming allocation function fails libdockapp-0.7.3/src/daargs.c:206:36: note: Assignment 'context=malloc(sizeof(struct DAContext))', assigned value is 0 libdockapp-0.7.3/src/daargs.c:210:2: note: Null pointer dereference libdockapp-0.7.3/src/daargs.c:211:2: warning: If memory allocation fails, then there is a possible null pointer dereference: context [nullPointerOutOfMemory] libdockapp-0.7.3/src/daargs.c:206:36: note: Assuming allocation function fails libdockapp-0.7.3/src/daargs.c:206:36: note: Assignment 'context=malloc(sizeof(struct DAContext))', assigned value is 0 libdockapp-0.7.3/src/daargs.c:211:2: note: Null pointer dereference libdockapp-0.7.3/src/daargs.c:212:2: warning: If memory allocation fails, then there is a possible null pointer dereference: context [nullPointerOutOfMemory] libdockapp-0.7.3/src/daargs.c:206:36: note: Assuming allocation function fails libdockapp-0.7.3/src/daargs.c:206:36: note: Assignment 'context=malloc(sizeof(struct DAContext))', assigned value is 0 libdockapp-0.7.3/src/daargs.c:212:2: note: Null pointer dereference libdockapp-0.7.3/src/daargs.c:259:2: warning: If memory allocation fails, then there is a possible null pointer dereference: option [nullPointerOutOfMemory] libdockapp-0.7.3/src/daargs.c:257:34: note: Assuming allocation function fails libdockapp-0.7.3/src/daargs.c:257:34: note: Assignment 'option=malloc(sizeof(struct DAProgramOption))', assigned value is 0 libdockapp-0.7.3/src/daargs.c:259:2: note: Null pointer dereference libdockapp-0.7.3/src/daargs.c:260:2: warning: If memory allocation fails, then there is a possible null pointer dereference: option [nullPointerOutOfMemory] libdockapp-0.7.3/src/daargs.c:257:34: note: Assuming allocation function fails libdockapp-0.7.3/src/daargs.c:257:34: note: Assignment 'option=malloc(sizeof(struct DAProgramOption))', assigned value is 0 libdockapp-0.7.3/src/daargs.c:260:2: note: Null pointer dereference libdockapp-0.7.3/src/daargs.c:261:2: warning: If memory allocation fails, then there is a possible null pointer dereference: option [nullPointerOutOfMemory] libdockapp-0.7.3/src/daargs.c:257:34: note: Assuming allocation function fails libdockapp-0.7.3/src/daargs.c:257:34: note: Assignment 'option=malloc(sizeof(struct DAProgramOption))', assigned value is 0 libdockapp-0.7.3/src/daargs.c:261:2: note: Null pointer dereference libdockapp-0.7.3/src/daargs.c:262:2: warning: If memory allocation fails, then there is a possible null pointer dereference: option [nullPointerOutOfMemory] libdockapp-0.7.3/src/daargs.c:257:34: note: Assuming allocation function fails libdockapp-0.7.3/src/daargs.c:257:34: note: Assignment 'option=malloc(sizeof(struct DAProgramOption))', assigned value is 0 libdockapp-0.7.3/src/daargs.c:262:2: note: Null pointer dereference libdockapp-0.7.3/src/daargs.c:263:2: warning: If memory allocation fails, then there is a possible null pointer dereference: option [nullPointerOutOfMemory] libdockapp-0.7.3/src/daargs.c:257:34: note: Assuming allocation function fails libdockapp-0.7.3/src/daargs.c:257:34: note: Assignment 'option=malloc(sizeof(struct DAProgramOption))', assigned value is 0 libdockapp-0.7.3/src/daargs.c:263:2: note: Null pointer dereference libdockapp-0.7.3/src/daargs.c:264:2: warning: If memory allocation fails, then there is a possible null pointer dereference: option [nullPointerOutOfMemory] libdockapp-0.7.3/src/daargs.c:257:34: note: Assuming allocation function fails libdockapp-0.7.3/src/daargs.c:257:34: note: Assignment 'option=malloc(sizeof(struct DAProgramOption))', assigned value is 0 libdockapp-0.7.3/src/daargs.c:264:2: note: Null pointer dereference libdockapp-0.7.3/src/daargs.c:56:8: style: Parameter 'versionDescription' can be declared as pointer to const [constParameterPointer] libdockapp-0.7.3/src/daargs.c:118:16: style: Parameter 'needle' can be declared as pointer to const [constParameterPointer] libdockapp-0.7.3/src/daargs.c:118:30: style: Parameter 'haystack' can be declared as pointer to const [constParameterPointer] libdockapp-0.7.3/src/daargs.c:120:8: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] libdockapp-0.7.3/src/daargs.c:291:17: style: Parameter 'description' can be declared as pointer to const [constParameterPointer] libdockapp-0.7.3/src/dacallback.c:36:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable StructureNotifyMask [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/dacallback.c:29:29: style: Parameter 'callbacks' can be declared as pointer to const [constParameterPointer] libdockapp-0.7.3/src/damain.c:83:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_width [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/damain.c:154:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/dapixmap.c:56:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShapeBounding [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/dapixmap.c:156:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XpmCloseness [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/darect.c:37:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/dashaped.c:117:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCForeground [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/dashaped.c:164:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCGraphicsExposures [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/dashaped.c:190:3: error: Memory leak: dasp [memleak] libdockapp-0.7.3/src/dautil.c:195:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/dautil.c:196:1: error: Memory leak: w_fmt [memleak] libdockapp-0.7.3/src/dautil.c:172:2: style: Statements following noreturn function 'exit()' will never be executed. [unreachableCode] libdockapp-0.7.3/src/dautil.c:200:19: style:inconclusive: Function 'debug' argument 1 names different: declaration 'message' definition 'fmt'. [funcArgNamesDifferent] libdockapp-0.7.3/src/dautil.h:23:24: note: Function 'debug' argument 1 names different: declaration 'message' definition 'fmt'. libdockapp-0.7.3/src/dautil.c:200:19: note: Function 'debug' argument 1 names different: declaration 'message' definition 'fmt'. libdockapp-0.7.3/src/list.c:47:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cell [nullPointerOutOfMemory] libdockapp-0.7.3/src/list.c:46:29: note: Assuming allocation function fails libdockapp-0.7.3/src/list.c:46:10: note: Assignment 'cell=(struct LinkedList*)malloc(sizeof(struct LinkedList))', assigned value is 0 libdockapp-0.7.3/src/list.c:47:3: note: Null pointer dereference libdockapp-0.7.3/src/list.c:48:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cell [nullPointerOutOfMemory] libdockapp-0.7.3/src/list.c:46:29: note: Assuming allocation function fails libdockapp-0.7.3/src/list.c:46:10: note: Assignment 'cell=(struct LinkedList*)malloc(sizeof(struct LinkedList))', assigned value is 0 libdockapp-0.7.3/src/list.c:48:3: note: Null pointer dereference libdockapp-0.7.3/src/list.c:55:25: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] libdockapp-0.7.3/src/list.c:70:33: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] libdockapp-0.7.3/src/list.c:136:35: style: Parameter 'elem' can be declared as pointer to const [constParameterPointer] libdockapp-0.7.3/src/misc.c:70:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/misc.c:76:6: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] libdockapp-0.7.3/src/misc.c:68:21: note: Assuming allocation function fails libdockapp-0.7.3/src/misc.c:68:13: note: Assignment 't=ret=malloc(strlen(word)+1)', assigned value is 0 libdockapp-0.7.3/src/misc.c:69:13: note: Assuming condition is false libdockapp-0.7.3/src/misc.c:76:6: note: Null pointer dereference libdockapp-0.7.3/src/misc.c:119:21: style:inconclusive: Function 'parse_command' argument 1 names different: declaration '' definition 'command'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/misc.c:119:38: style:inconclusive: Function 'parse_command' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/misc.c:119:49: style:inconclusive: Function 'parse_command' argument 3 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/misc.c:144:19: style:inconclusive: Function 'execCommand' argument 1 names different: declaration '' definition 'command'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/misc.c:102:9: error: Memory is allocated but not initialized: *ret [uninitdata] libdockapp-0.7.3/src/wmgeneral.c:202:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XpmReturnPixels [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/wmgeneral.c:226:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/wmgeneral.c:242:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Expose [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/wmgeneral.c:389:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShapeBounding [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/wmgeneral.c:420:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libdockapp-0.7.3/src/wmgeneral.c:119:31: style:inconclusive: Function 'parse_rcfile' argument 1 names different: declaration '' definition 'filename'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:119:49: style:inconclusive: Function 'parse_rcfile' argument 2 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:194:29: style:inconclusive: Function 'GetXPM' argument 1 names different: declaration '' definition 'wmgen'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:194:42: style:inconclusive: Function 'GetXPM' argument 2 names different: declaration '' definition 'pixmap_bytes'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:217:29: style:inconclusive: Function 'GetColor' argument 1 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:317:29: style:inconclusive: Function 'createXBMfromXPM' argument 1 names different: declaration '' definition 'xbm'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:317:41: style:inconclusive: Function 'createXBMfromXPM' argument 2 names different: declaration '' definition 'xpm'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:317:50: style:inconclusive: Function 'createXBMfromXPM' argument 3 names different: declaration '' definition 'sx'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:317:58: style:inconclusive: Function 'createXBMfromXPM' argument 4 names different: declaration '' definition 'sy'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:367:22: style:inconclusive: Function 'copyXPMArea' argument 1 names different: declaration '' definition 'x'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:367:29: style:inconclusive: Function 'copyXPMArea' argument 2 names different: declaration '' definition 'y'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:367:36: style:inconclusive: Function 'copyXPMArea' argument 3 names different: declaration '' definition 'sx'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:367:44: style:inconclusive: Function 'copyXPMArea' argument 4 names different: declaration '' definition 'sy'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:367:52: style:inconclusive: Function 'copyXPMArea' argument 5 names different: declaration '' definition 'dx'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:367:60: style:inconclusive: Function 'copyXPMArea' argument 6 names different: declaration '' definition 'dy'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:377:22: style:inconclusive: Function 'copyXBMArea' argument 1 names different: declaration '' definition 'x'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:377:29: style:inconclusive: Function 'copyXBMArea' argument 2 names different: declaration '' definition 'y'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:377:36: style:inconclusive: Function 'copyXBMArea' argument 3 names different: declaration '' definition 'sx'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:377:44: style:inconclusive: Function 'copyXBMArea' argument 4 names different: declaration '' definition 'sy'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:377:52: style:inconclusive: Function 'copyXBMArea' argument 5 names different: declaration '' definition 'dx'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:377:60: style:inconclusive: Function 'copyXBMArea' argument 6 names different: declaration '' definition 'dy'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:387:20: style:inconclusive: Function 'setMaskXY' argument 1 names different: declaration '' definition 'x'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:387:27: style:inconclusive: Function 'setMaskXY' argument 2 names different: declaration '' definition 'y'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:396:48: style:inconclusive: Function 'openXwindow' argument 3 names different: declaration '' definition 'pixmap_bytes'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:396:70: style:inconclusive: Function 'openXwindow' argument 4 names different: declaration '' definition 'pixmask_bits'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:396:88: style:inconclusive: Function 'openXwindow' argument 5 names different: declaration '' definition 'pixmask_width'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:396:107: style:inconclusive: Function 'openXwindow' argument 6 names different: declaration '' definition 'pixmask_height'. [funcArgNamesDifferentUnnamed] libdockapp-0.7.3/src/wmgeneral.c:130:10: style: Variable 'tokens' can be declared as pointer to const [constVariablePointer] libdockapp-0.7.3/src/wmgeneral.c:174:12: style: Variable 'tokens' can be declared as pointer to const [constVariablePointer] diff: head libdockapp-0.7.3/examples/rectangles/rectangles.c:357:20: style:inconclusive: Function 'setPointerColor' argument 1 names different: declaration '' definition 'color'. [funcArgNamesDifferentUnnamed] 2.20.0 libdockapp-0.7.3/src/dautil.c:195:19: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: w_fmt [nullPointerOutOfMemory] libdockapp-0.7.3/src/dautil.c:187:17: note: Assuming allocation function fails libdockapp-0.7.3/src/dautil.c:187:17: note: Assignment 'w_fmt=malloc((strlen(_daContext->programName)+strlen(fmt)+13)*sizeof(char))', assigned value is 0 libdockapp-0.7.3/src/dautil.c:195:19: note: Null pointer dereference head libdockapp-0.7.3/src/misc.c:119:21: style:inconclusive: Function 'parse_command' argument 1 names different: declaration '' definition 'command'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/misc.c:119:38: style:inconclusive: Function 'parse_command' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/misc.c:119:49: style:inconclusive: Function 'parse_command' argument 3 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/misc.c:144:19: style:inconclusive: Function 'execCommand' argument 1 names different: declaration '' definition 'command'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:119:31: style:inconclusive: Function 'parse_rcfile' argument 1 names different: declaration '' definition 'filename'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:119:49: style:inconclusive: Function 'parse_rcfile' argument 2 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:194:29: style:inconclusive: Function 'GetXPM' argument 1 names different: declaration '' definition 'wmgen'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:194:42: style:inconclusive: Function 'GetXPM' argument 2 names different: declaration '' definition 'pixmap_bytes'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:217:29: style:inconclusive: Function 'GetColor' argument 1 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:317:29: style:inconclusive: Function 'createXBMfromXPM' argument 1 names different: declaration '' definition 'xbm'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:317:41: style:inconclusive: Function 'createXBMfromXPM' argument 2 names different: declaration '' definition 'xpm'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:317:50: style:inconclusive: Function 'createXBMfromXPM' argument 3 names different: declaration '' definition 'sx'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:317:58: style:inconclusive: Function 'createXBMfromXPM' argument 4 names different: declaration '' definition 'sy'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:367:22: style:inconclusive: Function 'copyXPMArea' argument 1 names different: declaration '' definition 'x'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:367:29: style:inconclusive: Function 'copyXPMArea' argument 2 names different: declaration '' definition 'y'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:367:36: style:inconclusive: Function 'copyXPMArea' argument 3 names different: declaration '' definition 'sx'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:367:44: style:inconclusive: Function 'copyXPMArea' argument 4 names different: declaration '' definition 'sy'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:367:52: style:inconclusive: Function 'copyXPMArea' argument 5 names different: declaration '' definition 'dx'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:367:60: style:inconclusive: Function 'copyXPMArea' argument 6 names different: declaration '' definition 'dy'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:377:22: style:inconclusive: Function 'copyXBMArea' argument 1 names different: declaration '' definition 'x'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:377:29: style:inconclusive: Function 'copyXBMArea' argument 2 names different: declaration '' definition 'y'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:377:36: style:inconclusive: Function 'copyXBMArea' argument 3 names different: declaration '' definition 'sx'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:377:44: style:inconclusive: Function 'copyXBMArea' argument 4 names different: declaration '' definition 'sy'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:377:52: style:inconclusive: Function 'copyXBMArea' argument 5 names different: declaration '' definition 'dx'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:377:60: style:inconclusive: Function 'copyXBMArea' argument 6 names different: declaration '' definition 'dy'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:387:20: style:inconclusive: Function 'setMaskXY' argument 1 names different: declaration '' definition 'x'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:387:27: style:inconclusive: Function 'setMaskXY' argument 2 names different: declaration '' definition 'y'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:396:107: style:inconclusive: Function 'openXwindow' argument 6 names different: declaration '' definition 'pixmask_height'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:396:48: style:inconclusive: Function 'openXwindow' argument 3 names different: declaration '' definition 'pixmap_bytes'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:396:70: style:inconclusive: Function 'openXwindow' argument 4 names different: declaration '' definition 'pixmask_bits'. [funcArgNamesDifferentUnnamed] head libdockapp-0.7.3/src/wmgeneral.c:396:88: style:inconclusive: Function 'openXwindow' argument 5 names different: declaration '' definition 'pixmask_width'. [funcArgNamesDifferentUnnamed] DONE