2026-07-26 11:49 ftp://ftp.de.debian.org/debian/pool/main/w/wev/wev_1.1.0.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j96 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.21.0 head-info: 6640862 (2026-07-26 07:32:28 -0400) count: 26 25 elapsed-time: 1.3 0.5 head-timing-info: old-timing-info: head results: wev-1.1.0/shm.c:11:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] wev-1.1.0/shm.c:27:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] wev-1.1.0/shm.c:46:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wev-1.1.0/wev.c:315:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wev-1.1.0/wev.c:392:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WL_KEYBOARD_KEY_STATE_PRESSED [valueFlowBailoutIncompleteVar] wev-1.1.0/wev.c:518:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WL_SEAT_CAPABILITY_POINTER [valueFlowBailoutIncompleteVar] wev-1.1.0/wev.c:568:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wev-1.1.0/wev.c:702:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY [valueFlowBailoutIncompleteVar] wev-1.1.0/wev.c:764:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY [valueFlowBailoutIncompleteVar] wev-1.1.0/wev.c:1377:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wl_compositor_interface [valueFlowBailoutIncompleteVar] wev-1.1.0/wev.c:1436:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] wev-1.1.0/wev.c:1419:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] wev-1.1.0/wev.c:1420:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] wev-1.1.0/wev.c:1217:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] wev-1.1.0/wev.c:320:28: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] wev-1.1.0/wev.c:319:18: note: Assuming allocation function fails wev-1.1.0/wev.c:319:18: note: Assignment 'f=fopen(state->opts.dump_map,"w")', assigned value is 0 wev-1.1.0/wev.c:320:28: note: Null pointer dereference wev-1.1.0/wev.c:332:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: map_shm [nullPointerOutOfMemory] wev-1.1.0/wev.c:312:22: note: Assuming allocation function fails wev-1.1.0/wev.c:312:22: note: Assignment 'map_shm=mmap(NULL,size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 wev-1.1.0/wev.c:323:13: note: Assuming condition is false wev-1.1.0/wev.c:332:9: note: Null pointer dereference wev-1.1.0/wev.c:591:5: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] wev-1.1.0/wev.c:572:23: note: Assuming allocation function fails wev-1.1.0/wev.c:572:23: note: Assignment 'data=mmap(NULL,size,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)', assigned value is 0 wev-1.1.0/wev.c:591:5: note: Null pointer dereference wev-1.1.0/wev.c:595:9: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] wev-1.1.0/wev.c:572:23: note: Assuming allocation function fails wev-1.1.0/wev.c:572:23: note: Assignment 'data=mmap(NULL,size,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)', assigned value is 0 wev-1.1.0/wev.c:595:9: note: Null pointer dereference wev-1.1.0/wev.c:1422:2: warning: If memory allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfMemory] wev-1.1.0/wev.c:1421:31: note: Assuming allocation function fails wev-1.1.0/wev.c:1421:31: note: Assignment 'f=calloc(1,sizeof(struct wev_filter))', assigned value is 0 wev-1.1.0/wev.c:1422:2: note: Null pointer dereference wev-1.1.0/wev.c:1423:2: warning: If memory allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfMemory] wev-1.1.0/wev.c:1421:31: note: Assuming allocation function fails wev-1.1.0/wev.c:1421:31: note: Assignment 'f=calloc(1,sizeof(struct wev_filter))', assigned value is 0 wev-1.1.0/wev.c:1423:2: note: Null pointer dereference wev-1.1.0/wev.c:1404:9: style: Parameter 'data' can be declared as pointer to const. However it seems that 'registry_global_remove' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wev-1.1.0/wev.c:1410:19: note: You might need to cast the function pointer here wev-1.1.0/wev.c:1404:9: note: Parameter 'data' can be declared as pointer to const wev-1.1.0/wev.c:1404:35: style: Parameter 'wl_registry' can be declared as pointer to const. However it seems that 'registry_global_remove' is a callback function, if 'wl_registry' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wev-1.1.0/wev.c:1410:19: note: You might need to cast the function pointer here wev-1.1.0/wev.c:1404:35: note: Parameter 'wl_registry' can be declared as pointer to const wev-1.1.0/wev.c:1419:8: style: Variable 'iface' can be declared as pointer to const [constVariablePointer] wev-1.1.0/wev.c:1420:8: style: Variable 'event' can be declared as pointer to const [constVariablePointer] wev-1.1.0/wev.c:71:23: error: Uninitialized variable: filter->interface [uninitvar] wev-1.1.0/wev.c:84:23: error: Uninitialized variable: filter->interface [uninitvar] diff: head wev-1.1.0/wev.c:591:5: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] wev-1.1.0/wev.c:572:23: note: Assuming allocation function fails wev-1.1.0/wev.c:572:23: note: Assignment 'data=mmap(NULL,size,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)', assigned value is 0 wev-1.1.0/wev.c:591:5: note: Null pointer dereference DONE