2025-11-24 21:08 ftp://ftp.de.debian.org/debian/pool/main/x/xwallpaper/xwallpaper_0.7.6.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --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-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 42 42 elapsed-time: 1.0 0.9 head-timing-info: old-timing-info: head results: xwallpaper-0.7.6/debug.c:29:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/load_jpeg.c:64:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/load_png.c:95:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_INFO_tRNS [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/load_xpm.c:48:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/load_xpm.c:54:12: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] xwallpaper-0.7.6/load_xpm.c:53:15: note: Assuming allocation function fails xwallpaper-0.7.6/load_xpm.c:53:15: note: Assignment 'buf=xmalloc((unsigned long)st.st_size)', assigned value is 0 xwallpaper-0.7.6/load_xpm.c:54:12: note: Null pointer dereference xwallpaper-0.7.6/load_xpm.c:38:12: style: Variable 'color' can be declared as pointer to const [constVariablePointer] xwallpaper-0.7.6/load_xpm.c:45:16: style: Variable 'd' can be declared as pointer to const [constVariablePointer] xwallpaper-0.7.6/load_xpm.c:112:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] xwallpaper-0.7.6/main.c:50:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xcb_put_image_request_t [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/main.c:181:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PIXMAN_OP_CONJOINT_SRC [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/main.c:338:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PIXMAN_FILTER_FAST [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/main.c:398:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XCB_IMAGE_FORMAT_Z_PIXMAP [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/main.c:451:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/main.c:497:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xcb_kill_client [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/main.c:596:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/main.c:702:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/main.c:109:12: style: Condition 'img==NULL' is always true [knownConditionTrueFalse] xwallpaper-0.7.6/main.c:72:17: note: Assignment 'pixman_image=NULL', assigned value is 0 xwallpaper-0.7.6/main.c:108:27: note: Calling function 'load_pixman_image' returns 0 xwallpaper-0.7.6/main.c:108:27: note: Assignment 'img=load_pixman_image(c,screen,opt->buffer->fp)', assigned value is 0 xwallpaper-0.7.6/main.c:109:12: note: Condition 'img==NULL' is always true xwallpaper-0.7.6/main.c:44:60: style: Parameter 'image' can be declared as pointer to const [constParameterPointer] xwallpaper-0.7.6/main.c:68:37: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] xwallpaper-0.7.6/main.c:68:54: style: Parameter 'screen' can be declared as pointer to const [constParameterPointer] xwallpaper-0.7.6/main.c:68:68: style: Parameter 'fp' can be declared as pointer to const [constParameterPointer] xwallpaper-0.7.6/main.c:122:15: style: Variable 'trim' can be declared as pointer to const [constVariablePointer] xwallpaper-0.7.6/main.c:743:23: style: Unused variable: event [unusedVariable] xwallpaper-0.7.6/options.c:37:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable st_dev [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/options.c:91:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/options.c:184:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable options [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/options.c:171:3: warning: If memory allocation fails, then there is a possible null pointer dereference: *box [nullPointerOutOfMemory] xwallpaper-0.7.6/options.c:170:16: note: Assuming allocation function fails xwallpaper-0.7.6/options.c:170:16: note: Assignment '*box=xmalloc(sizeof(*box))', assigned value is 0 xwallpaper-0.7.6/options.c:171:3: note: Null pointer dereference xwallpaper-0.7.6/options.c:183:3: warning: If memory allocation fails, then there is a possible null pointer dereference: config [nullPointerOutOfMemory] xwallpaper-0.7.6/options.c:182:18: note: Assuming allocation function fails xwallpaper-0.7.6/options.c:182:18: note: Assignment 'config=xmalloc(sizeof(*config))', assigned value is 0 xwallpaper-0.7.6/options.c:183:3: note: Null pointer dereference xwallpaper-0.7.6/options.c:118:18: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] xwallpaper-0.7.6/options.c:136:20: style: Parameter 'screen' can be declared as pointer to const [constParameterPointer] xwallpaper-0.7.6/options.c:148:17: style: Parameter 's' can be declared as pointer to const [constParameterPointer] xwallpaper-0.7.6/outputs.c:164:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/outputs.c:163:2: warning: If memory allocation fails, then there is a possible null pointer dereference: outputs [nullPointerOutOfMemory] xwallpaper-0.7.6/outputs.c:161:19: note: Assuming allocation function fails xwallpaper-0.7.6/outputs.c:161:19: note: Assignment 'outputs=xmalloc(sizeof(*outputs))', assigned value is 0 xwallpaper-0.7.6/outputs.c:163:2: note: Null pointer dereference xwallpaper-0.7.6/outputs.c:171:6: warning: If memory allocation fails, then there is a possible null pointer dereference: outputs [nullPointerOutOfMemory] xwallpaper-0.7.6/outputs.c:161:19: note: Assuming allocation function fails xwallpaper-0.7.6/outputs.c:161:19: note: Assignment 'outputs=xmalloc(sizeof(*outputs))', assigned value is 0 xwallpaper-0.7.6/outputs.c:171:6: note: Null pointer dereference xwallpaper-0.7.6/outputs.c:171:24: warning: If memory allocation fails, then there is a possible null pointer dereference: outputs [nullPointerOutOfMemory] xwallpaper-0.7.6/outputs.c:161:19: note: Assuming allocation function fails xwallpaper-0.7.6/outputs.c:161:19: note: Assignment 'outputs=xmalloc(sizeof(*outputs))', assigned value is 0 xwallpaper-0.7.6/outputs.c:171:24: note: Null pointer dereference xwallpaper-0.7.6/outputs.c:171:43: warning: If memory allocation fails, then there is a possible null pointer dereference: outputs [nullPointerOutOfMemory] xwallpaper-0.7.6/outputs.c:161:19: note: Assuming allocation function fails xwallpaper-0.7.6/outputs.c:161:19: note: Assignment 'outputs=xmalloc(sizeof(*outputs))', assigned value is 0 xwallpaper-0.7.6/outputs.c:171:43: note: Null pointer dereference xwallpaper-0.7.6/outputs.c:171:57: warning: If memory allocation fails, then there is a possible null pointer dereference: outputs [nullPointerOutOfMemory] xwallpaper-0.7.6/outputs.c:161:19: note: Assuming allocation function fails xwallpaper-0.7.6/outputs.c:161:19: note: Assignment 'outputs=xmalloc(sizeof(*outputs))', assigned value is 0 xwallpaper-0.7.6/outputs.c:171:57: note: Null pointer dereference xwallpaper-0.7.6/outputs.c:152:48: style: Parameter 'screen' can be declared as pointer to const [constParameterPointer] xwallpaper-0.7.6/seccomp.c:35:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PR_GET_SECCOMP [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/seccomp.c:52:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exit_group [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/seccomp.c:148:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCMP_ACT_KILL [valueFlowBailoutIncompleteVar] xwallpaper-0.7.6/seccomp.c:209:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCMP_ACT_KILL [valueFlowBailoutIncompleteVar] diff: DONE