2025-05-09 01:04 ftp://ftp.de.debian.org/debian/pool/main/x/xdesktopwaves/xdesktopwaves_1.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 66c9938 (2025-05-08 13:55:11 +0200) count: 82 82 elapsed-time: 2.6 2.6 head-timing-info: old-timing-info: head results: xdesktopwaves-1.3/xdwapi/xdwapidemo.c:41:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdwapi/xdwapi.c:95:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_WINDOW [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdwapi/xdwapi.c:238:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_CARDINAL [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:58:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:65:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:71:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:75:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:77:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:79:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:81:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:83:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:95:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:109:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:141:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:155:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:171:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:71:9: error: Invalid usleep() argument nr 1. The value is 1000000 but the valid values are '0:999999'. [invalidFunctionArg] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:81:9: error: Invalid usleep() argument nr 1. The value is 1000000 but the valid values are '0:999999'. [invalidFunctionArg] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:83:9: error: Invalid usleep() argument nr 1. The value is 1000000 but the valid values are '0:999999'. [invalidFunctionArg] xdesktopwaves-1.3/xdwapi/xdwapidemo.c:29:27: style: Parameter 'argv' can be declared as const array [constParameter] xdesktopwaves-1.3/xdwapi/xdwapi.c:45:2: warning: If memory allocation fails, then there is a possible null pointer dereference: imp [nullPointerOutOfMemory] xdesktopwaves-1.3/xdwapi/xdwapi.c:44:31: note: Assuming allocation function fails xdesktopwaves-1.3/xdwapi/xdwapi.c:44:6: note: Assignment 'imp=(struct xdwApiContextImp*)malloc(sizeof(struct xdwApiContextImp))', assigned value is 0 xdesktopwaves-1.3/xdwapi/xdwapi.c:45:2: note: Null pointer dereference xdesktopwaves-1.3/xdwapi/xdwapi.c:46:2: warning: If memory allocation fails, then there is a possible null pointer dereference: imp [nullPointerOutOfMemory] xdesktopwaves-1.3/xdwapi/xdwapi.c:44:31: note: Assuming allocation function fails xdesktopwaves-1.3/xdwapi/xdwapi.c:44:6: note: Assignment 'imp=(struct xdwApiContextImp*)malloc(sizeof(struct xdwApiContextImp))', assigned value is 0 xdesktopwaves-1.3/xdwapi/xdwapi.c:46:2: note: Null pointer dereference xdesktopwaves-1.3/xdwapi/xdwapi.c:47:2: warning: If memory allocation fails, then there is a possible null pointer dereference: imp [nullPointerOutOfMemory] xdesktopwaves-1.3/xdwapi/xdwapi.c:44:31: note: Assuming allocation function fails xdesktopwaves-1.3/xdwapi/xdwapi.c:44:6: note: Assignment 'imp=(struct xdwApiContextImp*)malloc(sizeof(struct xdwApiContextImp))', assigned value is 0 xdesktopwaves-1.3/xdwapi/xdwapi.c:47:2: note: Null pointer dereference xdesktopwaves-1.3/xdwapi/xdwapi.c:50:2: warning: If memory allocation fails, then there is a possible null pointer dereference: imp [nullPointerOutOfMemory] xdesktopwaves-1.3/xdwapi/xdwapi.c:44:31: note: Assuming allocation function fails xdesktopwaves-1.3/xdwapi/xdwapi.c:44:6: note: Assignment 'imp=(struct xdwApiContextImp*)malloc(sizeof(struct xdwApiContextImp))', assigned value is 0 xdesktopwaves-1.3/xdwapi/xdwapi.c:50:2: note: Null pointer dereference xdesktopwaves-1.3/xdwapi/xdwapi.c:53:2: warning: If memory allocation fails, then there is a possible null pointer dereference: imp [nullPointerOutOfMemory] xdesktopwaves-1.3/xdwapi/xdwapi.c:44:31: note: Assuming allocation function fails xdesktopwaves-1.3/xdwapi/xdwapi.c:44:6: note: Assignment 'imp=(struct xdwApiContextImp*)malloc(sizeof(struct xdwApiContextImp))', assigned value is 0 xdesktopwaves-1.3/xdwapi/xdwapi.c:53:2: note: Null pointer dereference xdesktopwaves-1.3/xdwapi/xdwapi.c:101:7: warning: Either the condition 'data' is redundant or there is possible null pointer dereference: (Window*)data. [nullPointerRedundantCheck] xdesktopwaves-1.3/xdwapi/xdwapi.c:102:6: note: Assuming that condition 'data' is not redundant xdesktopwaves-1.3/xdwapi/xdwapi.c:101:7: note: Null pointer dereference xdesktopwaves-1.3/xdwapi/xdwapi.c:69:43: style: Parameter 'display' can be declared as pointer to const. However it seems that 'xdwApiTmpXErrHandler' is a callback function, if 'display' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xdesktopwaves-1.3/xdwapi/xdwapi.c:121:41: note: You might need to cast the function pointer here xdesktopwaves-1.3/xdwapi/xdwapi.c:69:43: note: Parameter 'display' can be declared as pointer to const xdesktopwaves-1.3/xdwapi/xdwapi.c:69:66: style: Parameter 'errorEvent' can be declared as pointer to const. However it seems that 'xdwApiTmpXErrHandler' is a callback function, if 'errorEvent' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xdesktopwaves-1.3/xdwapi/xdwapi.c:121:41: note: You might need to cast the function pointer here xdesktopwaves-1.3/xdwapi/xdwapi.c:69:66: note: Parameter 'errorEvent' can be declared as pointer to const xdesktopwaves-1.3/xdesktopwaves.c:206:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:550:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:2071:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:2643:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable count [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:2675:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_CLK_TCK [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:2805:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:3135:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:3240:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SubstructureNotifyMask [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:3448:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IsViewable [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:3614:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_WINDOW [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:3636:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_WINDOW [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:3893:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShapeNotify [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:3939:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdesktopwaves-1.3/xdesktopwaves.c:4236:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdesktopwaves.c:4245:19: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdesktopwaves-1.3/xdesktopwaves.c:1993:38: style: Condition 'xdwOperateCellsOpt2(p,c)' is always false [knownConditionTrueFalse] xdesktopwaves-1.3/xdesktopwaves.c:1993:38: note: Calling function 'xdwOperateCellsOpt2' returns 0 xdesktopwaves-1.3/xdesktopwaves.c:1993:38: note: Condition 'xdwOperateCellsOpt2(p,c)' is always false xdesktopwaves-1.3/xdesktopwaves.c:1994:38: style: Condition 'xdwOperateCellsOpt1(p,c)' is always false [knownConditionTrueFalse] xdesktopwaves-1.3/xdesktopwaves.c:1994:38: note: Calling function 'xdwOperateCellsOpt1' returns 0 xdesktopwaves-1.3/xdesktopwaves.c:1994:38: note: Condition 'xdwOperateCellsOpt1(p,c)' is always false xdesktopwaves-1.3/xdesktopwaves.c:681:4: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:673:32: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:673:12: note: Assignment 'reg->rows=(struct xdwRegScan**)malloc((y2-y1)*sizeof(struct xdwRegScan*))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:674:7: note: Assignment 'r=reg->rows', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:681:4: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:1127:9: warning: If memory allocation fails, then there is a possible null pointer dereference: xdwCellsMem [nullPointerOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:1126:20: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:1126:20: note: Assignment 'xdwCellsMem=malloc((xdwCellMemCols*xdwCellRows*3+7)*2)', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:1127:9: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:2186:9: warning: If memory allocation fails, then there is a possible null pointer dereference: xdwCanvas [nullPointerOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:2185:18: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:2185:18: note: Assignment 'xdwCanvas=malloc(sizeof(char)*xdwCanvasWidth*xdwCanvasHeight)', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:2186:9: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:2191:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xdwRectSets [nullPointerOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:2189:20: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:2189:20: note: Assignment 'xdwRectSets=malloc(sizeof(struct xdwRectSet)*xdwColorCount)', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:2191:3: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:2192:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xdwRectSets [nullPointerOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:2189:20: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:2189:20: note: Assignment 'xdwRectSets=malloc(sizeof(struct xdwRectSet)*xdwColorCount)', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:2192:3: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:2920:12: warning: Either the condition 'cwins' is redundant or there is possible null pointer dereference: cwins. [nullPointerRedundantCheck] xdesktopwaves-1.3/xdesktopwaves.c:2921:6: note: Assuming that condition 'cwins' is not redundant xdesktopwaves-1.3/xdesktopwaves.c:2920:12: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:3074:9: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:3073:10: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:3073:10: note: Assignment 'n=malloc(sizeof(struct xdwWinNode))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:3074:9: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:3075:2: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:3073:10: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:3073:10: note: Assignment 'n=malloc(sizeof(struct xdwWinNode))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:3075:2: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:3721:5: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:3720:24: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:3720:7: note: Assignment 'g=(struct xdwGhost*)malloc(sizeof(struct xdwGhost))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:3721:5: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:3724:4: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:3720:24: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:3720:7: note: Assignment 'g=(struct xdwGhost*)malloc(sizeof(struct xdwGhost))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:3724:4: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:3725:4: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:3720:24: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:3720:7: note: Assignment 'g=(struct xdwGhost*)malloc(sizeof(struct xdwGhost))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:3725:4: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:3726:4: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:3720:24: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:3720:7: note: Assignment 'g=(struct xdwGhost*)malloc(sizeof(struct xdwGhost))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:3726:4: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:3727:4: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:3720:24: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:3720:7: note: Assignment 'g=(struct xdwGhost*)malloc(sizeof(struct xdwGhost))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:3727:4: note: Null pointer dereference xdesktopwaves-1.3/xdesktopwaves.c:675:6: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:673:32: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:673:12: note: Assignment 'reg->rows=(struct xdwRegScan**)malloc((y2-y1)*sizeof(struct xdwRegScan*))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:674:3: note: r is assigned 'reg->rows' here. xdesktopwaves-1.3/xdesktopwaves.c:675:6: note: Null pointer addition xdesktopwaves-1.3/xdesktopwaves.c:682:4: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:673:32: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:673:12: note: Assignment 'reg->rows=(struct xdwRegScan**)malloc((y2-y1)*sizeof(struct xdwRegScan*))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:674:7: note: Assignment 'r=reg->rows', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:682:4: note: Null pointer addition xdesktopwaves-1.3/xdesktopwaves.c:1130:22: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:1126:20: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:1126:20: note: Assignment 'xdwCellsMem=malloc((xdwCellMemCols*xdwCellRows*3+7)*2)', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:1130:22: note: Null pointer addition xdesktopwaves-1.3/xdesktopwaves.c:760:42: style: Parameter 'reg' can be declared as pointer to const [constParameterPointer] xdesktopwaves-1.3/xdesktopwaves.c:814:41: style: Parameter 'reg' can be declared as pointer to const [constParameterPointer] xdesktopwaves-1.3/xdesktopwaves.c:1161:15: style: Variable 'pe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:1212:16: style: Variable 'pc' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:1278:15: style: Variable 'pe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:1310:15: style: Variable 'pe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:1379:41: style: Parameter 'cells' can be declared as pointer to const [constParameterPointer] xdesktopwaves-1.3/xdesktopwaves.c:1676:41: style: Parameter 'cells' can be declared as pointer to const [constParameterPointer] xdesktopwaves-1.3/xdesktopwaves.c:2203:21: style: Variable 'pe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:2236:21: style: Variable 'qe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:2237:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:2273:21: style: Variable 'qe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:2288:21: style: Variable 'qe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:2307:21: style: Variable 'qe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:2328:21: style: Variable 'qe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:2350:21: style: Variable 'qe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:2369:21: style: Variable 'qe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:2391:21: style: Variable 'qe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:2414:21: style: Variable 'qe' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:2482:35: style: Variable 'pye' can be declared as pointer to const [constVariablePointer] xdesktopwaves-1.3/xdesktopwaves.c:3648:40: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] diff: 2.17.0 xdesktopwaves-1.3/xdesktopwaves.c:1130:22: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:1126:20: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:1126:20: note: Assignment 'xdwCellsMem=malloc((xdwCellMemCols*xdwCellRows*3+7)*2)', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:1130:22: note: Null pointer addition head xdesktopwaves-1.3/xdesktopwaves.c:1130:22: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:1126:20: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:1126:20: note: Assignment 'xdwCellsMem=malloc((xdwCellMemCols*xdwCellRows*3+7)*2)', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:1130:22: note: Null pointer addition 2.17.0 xdesktopwaves-1.3/xdesktopwaves.c:675:6: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:673:32: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:673:12: note: Assignment 'reg->rows=(struct xdwRegScan**)malloc((y2-y1)*sizeof(struct xdwRegScan*))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:674:3: note: r is assigned 'reg->rows' here. xdesktopwaves-1.3/xdesktopwaves.c:675:6: note: Null pointer addition head xdesktopwaves-1.3/xdesktopwaves.c:675:6: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:673:32: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:673:12: note: Assignment 'reg->rows=(struct xdwRegScan**)malloc((y2-y1)*sizeof(struct xdwRegScan*))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:674:3: note: r is assigned 'reg->rows' here. xdesktopwaves-1.3/xdesktopwaves.c:675:6: note: Null pointer addition 2.17.0 xdesktopwaves-1.3/xdesktopwaves.c:682:4: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:673:32: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:673:12: note: Assignment 'reg->rows=(struct xdwRegScan**)malloc((y2-y1)*sizeof(struct xdwRegScan*))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:674:7: note: Assignment 'r=reg->rows', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:682:4: note: Null pointer addition head xdesktopwaves-1.3/xdesktopwaves.c:682:4: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] xdesktopwaves-1.3/xdesktopwaves.c:673:32: note: Assuming allocation function fails xdesktopwaves-1.3/xdesktopwaves.c:673:12: note: Assignment 'reg->rows=(struct xdwRegScan**)malloc((y2-y1)*sizeof(struct xdwRegScan*))', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:674:7: note: Assignment 'r=reg->rows', assigned value is 0 xdesktopwaves-1.3/xdesktopwaves.c:682:4: note: Null pointer addition DONE