2025-07-06 18:05 ftp://ftp.de.debian.org/debian/pool/main/x/xkeycaps/xkeycaps_2.47.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-63-generic-x86_64-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: 9b11b6b (2025-07-04 16:03:30 +0200) count: 172 170 elapsed-time: 1.2 1.3 head-timing-info: old-timing-info: head results: xkeycaps-2.47/KbdWidget.c:261:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtGeometryYes [valueFlowBailoutIncompleteVar] xkeycaps-2.47/KbdWidget.c:273:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtGeometryNo [valueFlowBailoutIncompleteVar] xkeycaps-2.47/KbdWidget.c:312:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InputOutput [valueFlowBailoutIncompleteVar] xkeycaps-2.47/KbdWidget.c:347:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xkeycaps-2.47/KbdWidget.c:579:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCFunction [valueFlowBailoutIncompleteVar] xkeycaps-2.47/KbdWidget.c:676:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNiconPixmap [valueFlowBailoutIncompleteVar] xkeycaps-2.47/KbdWidget.c:258:24: style: Parameter 'request' can be declared as pointer to const. However it seems that 'PreferredSize' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xkeycaps-2.47/KbdWidget.c:124:27: note: You might need to cast the function pointer here xkeycaps-2.47/KbdWidget.c:258:24: note: Parameter 'request' can be declared as pointer to const xkeycaps-2.47/KbdWidget.c:258:34: style: Parameter 'preferred' can be declared as pointer to const. However it seems that 'PreferredSize' is a callback function, if 'preferred' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xkeycaps-2.47/KbdWidget.c:124:27: note: You might need to cast the function pointer here xkeycaps-2.47/KbdWidget.c:258:34: note: Parameter 'preferred' can be declared as pointer to const xkeycaps-2.47/KbdWidget.c:270:24: style: Parameter 'request' can be declared as pointer to const. However it seems that 'GeometryManager' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xkeycaps-2.47/KbdWidget.c:131:29: note: You might need to cast the function pointer here xkeycaps-2.47/KbdWidget.c:270:24: note: Parameter 'request' can be declared as pointer to const xkeycaps-2.47/KbdWidget.c:270:34: style: Parameter 'reply' can be declared as pointer to const. However it seems that 'GeometryManager' is a callback function, if 'reply' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xkeycaps-2.47/KbdWidget.c:131:29: note: You might need to cast the function pointer here xkeycaps-2.47/KbdWidget.c:270:34: note: Parameter 'reply' can be declared as pointer to const xkeycaps-2.47/KbdWidget.c:339:18: style: Variable 'keycodes' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/KbdWidget.c:392:31: style: Variable 'key' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/KbdWidget.c:515:38: style: Parameter 'geom' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/KbdWidget.c:603:31: style: Variable 'key' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/KbdWidget.c:641:15: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/KbdWidget.c:692:16: style: Variable 'i' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/KbdWidget.c:648:12: style: Variable 'kbd_count' is assigned a value that is never used. [unreadVariable] xkeycaps-2.47/KeyWidget.c:160:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InputOutput [valueFlowBailoutIncompleteVar] xkeycaps-2.47/KeyWidget.c:235:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] xkeycaps-2.47/KeyWidget.c:273:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XC_sb_left_arrow [valueFlowBailoutIncompleteVar] xkeycaps-2.47/KeyWidget.c:157:15: style: Variable 'k1' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/KeyWidget.c:157:20: style: Variable 'k2' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/KeyWidget.c:157:25: style: Variable 'k3' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/KeyWidget.c:317:5: style: Variable 'x' is assigned a value that is never used. [unreadVariable] xkeycaps-2.47/KeyWidget.c:317:9: style: Variable 'y' is assigned a value that is never used. [unreadVariable] xkeycaps-2.47/actions.c:86:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xkeycaps-2.47/actions.c:271:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyPress [valueFlowBailoutIncompleteVar] xkeycaps-2.47/actions.c:299:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonRelease [valueFlowBailoutIncompleteVar] xkeycaps-2.47/actions.c:321:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonRelease [valueFlowBailoutIncompleteVar] xkeycaps-2.47/actions.c:357:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] xkeycaps-2.47/actions.c:391:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MotionNotify [valueFlowBailoutIncompleteVar] xkeycaps-2.47/actions.c:611:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyRelease [valueFlowBailoutIncompleteVar] xkeycaps-2.47/actions.c:640:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PointerRoot [valueFlowBailoutIncompleteVar] xkeycaps-2.47/actions.c:697:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MappingNotify [valueFlowBailoutIncompleteVar] xkeycaps-2.47/actions.c:55:12: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/actions.c:139:16: style: Parameter 'argc' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/actions.c:162:16: style: Parameter 'argc' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/actions.c:185:16: style: Parameter 'argc' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/actions.c:219:16: style: Parameter 'argc' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/actions.c:238:16: style: Parameter 'argc' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/actions.c:256:16: style: Parameter 'argc' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/actions.c:292:16: style: Parameter 'argc' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/actions.c:316:16: style: Parameter 'argc' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/actions.c:693:14: style: Parameter 'event' can be declared as pointer to const. However it seems that 'mapping_event_p' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xkeycaps-2.47/actions.c:718:8: note: You might need to cast the function pointer here xkeycaps-2.47/actions.c:693:14: note: Parameter 'event' can be declared as pointer to const xkeycaps-2.47/vroot.h:80:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:164:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable commandWidgetClass [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:258:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeySym [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:773:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyPressMask [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:802:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonPressMask [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:955:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:999:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:1327:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:1373:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNsensitive [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:1397:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable formWidgetClass [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:1782:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:1801:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:1850:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:1924:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNjumpProc [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:1950:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:2052:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:2112:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transientShellWidgetClass [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:2281:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtGrabNonexclusive [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:2551:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNbitmap [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:2630:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable panedWidgetClass [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:2747:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:2859:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transientShellWidgetClass [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:2944:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonPressMask [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:3001:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShiftMapIndex [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:3069:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Meta_L [valueFlowBailoutIncompleteVar] xkeycaps-2.47/commands.c:409:41: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] xkeycaps-2.47/commands.c:322:10: warning: If memory allocation fails, then there is a possible null pointer dereference: target [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:321:27: note: Assuming allocation function fails xkeycaps-2.47/commands.c:321:12: note: Assignment 'target=(char*)malloc(L+1)', assigned value is 0 xkeycaps-2.47/commands.c:322:10: note: Null pointer dereference xkeycaps-2.47/commands.c:323:7: warning: If memory allocation fails, then there is a possible null pointer dereference: target [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:321:27: note: Assuming allocation function fails xkeycaps-2.47/commands.c:321:12: note: Assignment 'target=(char*)malloc(L+1)', assigned value is 0 xkeycaps-2.47/commands.c:323:7: note: Null pointer dereference xkeycaps-2.47/commands.c:323:21: warning: If memory allocation fails, then there is a possible null pointer dereference: target [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:321:27: note: Assuming allocation function fails xkeycaps-2.47/commands.c:321:12: note: Assignment 'target=(char*)malloc(L+1)', assigned value is 0 xkeycaps-2.47/commands.c:323:21: note: Null pointer dereference xkeycaps-2.47/commands.c:326:10: warning: If memory allocation fails, then there is a possible null pointer dereference: target [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:321:27: note: Assuming allocation function fails xkeycaps-2.47/commands.c:321:12: note: Assignment 'target=(char*)malloc(L+1)', assigned value is 0 xkeycaps-2.47/commands.c:326:10: note: Null pointer dereference xkeycaps-2.47/commands.c:336:13: warning: If memory allocation fails, then there is a possible null pointer dereference: target [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:321:27: note: Assuming allocation function fails xkeycaps-2.47/commands.c:321:12: note: Assignment 'target=(char*)malloc(L+1)', assigned value is 0 xkeycaps-2.47/commands.c:336:13: note: Null pointer dereference xkeycaps-2.47/commands.c:346:15: warning: If memory allocation fails, then there is a possible null pointer dereference: t2 [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:345:28: note: Assuming allocation function fails xkeycaps-2.47/commands.c:345:12: note: Assignment 't2=(char*)malloc(strlen(target)+10)', assigned value is 0 xkeycaps-2.47/commands.c:346:15: note: Null pointer dereference xkeycaps-2.47/commands.c:347:15: warning: If memory allocation fails, then there is a possible null pointer dereference: t2 [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:345:28: note: Assuming allocation function fails xkeycaps-2.47/commands.c:345:12: note: Assignment 't2=(char*)malloc(strlen(target)+10)', assigned value is 0 xkeycaps-2.47/commands.c:347:15: note: Null pointer dereference xkeycaps-2.47/commands.c:348:23: warning: If memory allocation fails, then there is a possible null pointer dereference: t2 [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:345:28: note: Assuming allocation function fails xkeycaps-2.47/commands.c:345:12: note: Assignment 't2=(char*)malloc(strlen(target)+10)', assigned value is 0 xkeycaps-2.47/commands.c:348:23: note: Null pointer dereference xkeycaps-2.47/commands.c:1323:11: warning: If memory allocation fails, then there is a possible null pointer dereference: key_menus [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:1322:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:1321:33: note: Assignment 'key_menus=(struct key_menus*)malloc(sizeof(struct key_menus))', assigned value is 0 xkeycaps-2.47/commands.c:1323:11: note: Null pointer dereference xkeycaps-2.47/commands.c:1332:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key_menus [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:1322:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:1321:33: note: Assignment 'key_menus=(struct key_menus*)malloc(sizeof(struct key_menus))', assigned value is 0 xkeycaps-2.47/commands.c:1332:3: note: Null pointer dereference xkeycaps-2.47/commands.c:1336:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key_menus [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:1322:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:1321:33: note: Assignment 'key_menus=(struct key_menus*)malloc(sizeof(struct key_menus))', assigned value is 0 xkeycaps-2.47/commands.c:1336:3: note: Null pointer dereference xkeycaps-2.47/commands.c:1340:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key_menus [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:1322:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:1321:33: note: Assignment 'key_menus=(struct key_menus*)malloc(sizeof(struct key_menus))', assigned value is 0 xkeycaps-2.47/commands.c:1340:3: note: Null pointer dereference xkeycaps-2.47/commands.c:1344:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key_menus [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:1322:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:1321:33: note: Assignment 'key_menus=(struct key_menus*)malloc(sizeof(struct key_menus))', assigned value is 0 xkeycaps-2.47/commands.c:1344:3: note: Null pointer dereference xkeycaps-2.47/commands.c:1348:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key_menus [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:1322:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:1321:33: note: Assignment 'key_menus=(struct key_menus*)malloc(sizeof(struct key_menus))', assigned value is 0 xkeycaps-2.47/commands.c:1348:3: note: Null pointer dereference xkeycaps-2.47/commands.c:1352:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key_menus [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:1322:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:1321:33: note: Assignment 'key_menus=(struct key_menus*)malloc(sizeof(struct key_menus))', assigned value is 0 xkeycaps-2.47/commands.c:1352:3: note: Null pointer dereference xkeycaps-2.47/commands.c:1354:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key_menus [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:1322:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:1321:33: note: Assignment 'key_menus=(struct key_menus*)malloc(sizeof(struct key_menus))', assigned value is 0 xkeycaps-2.47/commands.c:1354:3: note: Null pointer dereference xkeycaps-2.47/commands.c:1355:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key_menus [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:1322:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:1321:33: note: Assignment 'key_menus=(struct key_menus*)malloc(sizeof(struct key_menus))', assigned value is 0 xkeycaps-2.47/commands.c:1355:3: note: Null pointer dereference xkeycaps-2.47/commands.c:2115:3: warning: If memory allocation fails, then there is a possible null pointer dereference: box [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2103:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2102:30: note: Assignment 'box=(struct edit_key_box*)malloc(sizeof(struct edit_key_box))', assigned value is 0 xkeycaps-2.47/commands.c:2115:3: note: Null pointer dereference xkeycaps-2.47/commands.c:2145:3: warning: If memory allocation fails, then there is a possible null pointer dereference: box [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2103:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2102:30: note: Assignment 'box=(struct edit_key_box*)malloc(sizeof(struct edit_key_box))', assigned value is 0 xkeycaps-2.47/commands.c:2145:3: note: Null pointer dereference xkeycaps-2.47/commands.c:2145:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: box [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2103:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2102:30: note: Assignment 'box=(struct edit_key_box*)malloc(sizeof(struct edit_key_box))', assigned value is 0 xkeycaps-2.47/commands.c:2145:3: note: Null pointer dereference xkeycaps-2.47/commands.c:2146:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: box [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2103:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2102:30: note: Assignment 'box=(struct edit_key_box*)malloc(sizeof(struct edit_key_box))', assigned value is 0 xkeycaps-2.47/commands.c:2146:3: note: Null pointer dereference xkeycaps-2.47/commands.c:2147:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: box [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2103:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2102:30: note: Assignment 'box=(struct edit_key_box*)malloc(sizeof(struct edit_key_box))', assigned value is 0 xkeycaps-2.47/commands.c:2147:3: note: Null pointer dereference xkeycaps-2.47/commands.c:2148:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: box [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2103:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2102:30: note: Assignment 'box=(struct edit_key_box*)malloc(sizeof(struct edit_key_box))', assigned value is 0 xkeycaps-2.47/commands.c:2148:3: note: Null pointer dereference xkeycaps-2.47/commands.c:2149:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: box [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2103:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2102:30: note: Assignment 'box=(struct edit_key_box*)malloc(sizeof(struct edit_key_box))', assigned value is 0 xkeycaps-2.47/commands.c:2149:3: note: Null pointer dereference xkeycaps-2.47/commands.c:2341:7: warning: If memory allocation fails, then there is a possible null pointer dereference: vendors [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2335:36: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2335:13: note: Assignment 'vendors=(char**)malloc(sizeof(*vendors)*(vendor_count+1))', assigned value is 0 xkeycaps-2.47/commands.c:2341:7: note: Null pointer dereference xkeycaps-2.47/commands.c:2419:16: warning: If memory allocation fails, then there is a possible null pointer dereference: map_name [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2418:35: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2418:19: note: Assignment 'map_name=(char*)malloc(ML)', assigned value is 0 xkeycaps-2.47/commands.c:2419:16: note: Null pointer dereference xkeycaps-2.47/commands.c:2420:8: warning: If memory allocation fails, then there is a possible null pointer dereference: map_name [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2418:35: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2418:19: note: Assignment 'map_name=(char*)malloc(ML)', assigned value is 0 xkeycaps-2.47/commands.c:2420:8: note: Null pointer dereference xkeycaps-2.47/commands.c:2456:2: warning: If memory allocation fails, then there is a possible null pointer dereference: keyboard_types [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2453:39: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2453:22: note: Assignment 'keyboard_types=(char**)malloc(sizeof(char*)*(j+1))', assigned value is 0 xkeycaps-2.47/commands.c:2456:2: note: Null pointer dereference xkeycaps-2.47/commands.c:2460:5: warning: If memory allocation fails, then there is a possible null pointer dereference: keyboard_types [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2453:39: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2453:22: note: Assignment 'keyboard_types=(char**)malloc(sizeof(char*)*(j+1))', assigned value is 0 xkeycaps-2.47/commands.c:2460:5: note: Null pointer dereference xkeycaps-2.47/commands.c:2589:26: warning: If memory allocation fails, then there is a possible null pointer dereference: s1 [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2588:25: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2588:25: note: Assignment 's1=strdup(box->keyboard->keyboard.kbd_style)', assigned value is 0 xkeycaps-2.47/commands.c:2589:26: note: Null pointer dereference xkeycaps-2.47/commands.c:2631:3: warning: If memory allocation fails, then there is a possible null pointer dereference: box [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2617:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2616:32: note: Assignment 'box=(struct select_kbd_box*)malloc(sizeof(struct select_kbd_box))', assigned value is 0 xkeycaps-2.47/commands.c:2631:3: note: Null pointer dereference xkeycaps-2.47/commands.c:2632:3: warning: If memory allocation fails, then there is a possible null pointer dereference: box [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:2617:12: note: Assuming allocation function fails xkeycaps-2.47/commands.c:2616:32: note: Assignment 'box=(struct select_kbd_box*)malloc(sizeof(struct select_kbd_box))', assigned value is 0 xkeycaps-2.47/commands.c:2632:3: note: Null pointer dereference xkeycaps-2.47/commands.c:2088:51: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] xkeycaps-2.47/commands.c:2153:19: style: Variable 'prev_tog' is reassigned a value before the old one has been used. [redundantAssignment] xkeycaps-2.47/commands.c:2152:3: note: prev_tog is assigned xkeycaps-2.47/commands.c:2153:19: note: prev_tog is overwritten xkeycaps-2.47/commands.c:2179:8: style: Variable 'prev' is reassigned a value before the old one has been used. [redundantAssignment] xkeycaps-2.47/commands.c:2173:3: note: prev is assigned xkeycaps-2.47/commands.c:2179:8: note: prev is overwritten xkeycaps-2.47/commands.c:848:13: style: Local variable 'name' shadows outer variable [shadowVariable] xkeycaps-2.47/commands.c:187:12: note: Shadowed declaration xkeycaps-2.47/commands.c:848:13: note: Shadow variable xkeycaps-2.47/commands.c:1390:15: style: Local variable 'top' shadows outer variable [shadowVariable] xkeycaps-2.47/commands.c:188:19: note: Shadowed declaration xkeycaps-2.47/commands.c:1390:15: note: Shadow variable xkeycaps-2.47/commands.c:1748:10: style: Local variable 'name' shadows outer variable [shadowVariable] xkeycaps-2.47/commands.c:187:12: note: Shadowed declaration xkeycaps-2.47/commands.c:1748:10: note: Shadow variable xkeycaps-2.47/commands.c:1872:15: style: Local variable 'state' shadows outer variable [shadowVariable] xkeycaps-2.47/commands.c:189:10: note: Shadowed declaration xkeycaps-2.47/commands.c:1872:15: note: Shadow variable xkeycaps-2.47/commands.c:2059:12: style: Local variable 'buf' shadows outer variable [shadowVariable] xkeycaps-2.47/commands.c:2042:8: note: Shadowed declaration xkeycaps-2.47/commands.c:2059:12: note: Shadow variable xkeycaps-2.47/commands.c:2391:13: style: Local variable 'name' shadows outer variable [shadowVariable] xkeycaps-2.47/commands.c:187:12: note: Shadowed declaration xkeycaps-2.47/commands.c:2391:13: note: Shadow variable xkeycaps-2.47/commands.c:2407:13: style: Local variable 'full' shadows outer variable [shadowVariable] xkeycaps-2.47/commands.c:2362:12: note: Shadowed declaration xkeycaps-2.47/commands.c:2407:13: note: Shadow variable xkeycaps-2.47/commands.c:2851:10: style: Local variable 'label' shadows outer variable [shadowVariable] xkeycaps-2.47/commands.c:192:12: note: Shadowed declaration xkeycaps-2.47/commands.c:2851:10: note: Shadow variable xkeycaps-2.47/commands.c:3174:9: style: Local variable 'i' shadows outer variable [shadowVariable] xkeycaps-2.47/commands.c:3047:7: note: Shadowed declaration xkeycaps-2.47/commands.c:3174:9: note: Shadow variable xkeycaps-2.47/commands.c:306:15: style: Variable 'home' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:307:15: style: Variable 'base' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:368:14: style: Parameter 'vendor' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/commands.c:369:14: style: Parameter 'kbd_style' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/commands.c:590:8: style: Variable 'str' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:701:13: style: Variable 'str' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:1085:13: style: Variable 'k' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:1717:24: style: Variable 'lr' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:2327:19: style: Variable 'v' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:2408:20: style: Variable 'map' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:2473:26: style: Variable 'box' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:2503:24: style: Variable 'lr' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:2568:15: style: Variable 'v' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:2774:17: style: Variable 'last_vendor' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:2846:12: style: Parameter 'arg0' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/commands.c:2846:19: style: Parameter 'arg1' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/commands.c:2846:26: style: Parameter 'arg2' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/commands.c:2846:33: style: Parameter 'arg3' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/commands.c:2846:40: style: Parameter 'arg4' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/commands.c:2846:47: style: Parameter 'arg5' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/vroot.h:75:17: style: Variable 'save_screen' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/commands.c:1103:27: warning: Uninitialized variable: buf [uninitvar] xkeycaps-2.47/commands.c:1086:21: note: Assuming condition is false xkeycaps-2.47/commands.c:1103:27: note: Uninitialized variable: buf xkeycaps-2.47/commands.c:1403:7: style: Variable 'top' is assigned a value that is never used. [unreadVariable] xkeycaps-2.47/commands.c:1975:14: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] xkeycaps-2.47/commands.c:1981:14: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] xkeycaps-2.47/commands.c:2884:19: style: Variable 'prev' is assigned a value that is never used. [unreadVariable] xkeycaps-2.47/guess.c:61:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xkeycaps-2.47/guess.c:93:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xkeycaps-2.47/guess.c:268:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xkeycaps-2.47/guess.c:351:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xkeycaps-2.47/guess.c:436:16: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] xkeycaps-2.47/guess.c:435:28: note: Assuming allocation function fails xkeycaps-2.47/guess.c:435:12: note: Assignment 's=(char*)malloc(strlen(buf)+1)', assigned value is 0 xkeycaps-2.47/guess.c:436:16: note: Null pointer dereference xkeycaps-2.47/guess.c:446:12: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] xkeycaps-2.47/guess.c:445:24: note: Assuming allocation function fails xkeycaps-2.47/guess.c:445:8: note: Assignment 's=(char*)malloc(strlen(buf)+1)', assigned value is 0 xkeycaps-2.47/guess.c:446:12: note: Null pointer dereference xkeycaps-2.47/guess.c:456:15: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] xkeycaps-2.47/guess.c:455:27: note: Assuming allocation function fails xkeycaps-2.47/guess.c:455:11: note: Assignment 's=(char*)malloc(strlen(buf)+1)', assigned value is 0 xkeycaps-2.47/guess.c:456:15: note: Null pointer dereference xkeycaps-2.47/guess.c:81:16: style: Variable 'loser1' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/guess.c:81:29: style: Variable 'loser2' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/guess.c:119:9: style: Variable 'vendor' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/guess.c:416:10: style: Variable 'n' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/info.c:78:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNresize [valueFlowBailoutIncompleteVar] xkeycaps-2.47/info.c:99:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable labelWidgetClass [valueFlowBailoutIncompleteVar] xkeycaps-2.47/info.c:215:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNfromHoriz [valueFlowBailoutIncompleteVar] xkeycaps-2.47/info.c:281:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] xkeycaps-2.47/info.c:297:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] xkeycaps-2.47/info.c:364:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] xkeycaps-2.47/info.c:397:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNfont [valueFlowBailoutIncompleteVar] xkeycaps-2.47/info.c:469:5: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] xkeycaps-2.47/info.c:247:3: warning: If memory allocation fails, then there is a possible null pointer dereference: labels [nullPointerOutOfMemory] xkeycaps-2.47/info.c:207:35: note: Assuming allocation function fails xkeycaps-2.47/info.c:207:5: note: Assignment 'labels=(struct info_labels*)malloc(sizeof(struct info_labels))', assigned value is 0 xkeycaps-2.47/info.c:247:3: note: Null pointer dereference xkeycaps-2.47/info.c:249:3: warning: If memory allocation fails, then there is a possible null pointer dereference: labels [nullPointerOutOfMemory] xkeycaps-2.47/info.c:207:35: note: Assuming allocation function fails xkeycaps-2.47/info.c:207:5: note: Assignment 'labels=(struct info_labels*)malloc(sizeof(struct info_labels))', assigned value is 0 xkeycaps-2.47/info.c:249:3: note: Null pointer dereference xkeycaps-2.47/info.c:251:3: warning: If memory allocation fails, then there is a possible null pointer dereference: labels [nullPointerOutOfMemory] xkeycaps-2.47/info.c:207:35: note: Assuming allocation function fails xkeycaps-2.47/info.c:207:5: note: Assignment 'labels=(struct info_labels*)malloc(sizeof(struct info_labels))', assigned value is 0 xkeycaps-2.47/info.c:251:3: note: Null pointer dereference xkeycaps-2.47/info.c:313:19: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] xkeycaps-2.47/info.c:429:13: style: Variable 'b2' can be declared as pointer to const [constVariablePointer] xkeycaps-2.47/xkeycaps.c:95:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BadWindow [valueFlowBailoutIncompleteVar] xkeycaps-2.47/xkeycaps.c:121:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNfromVert [valueFlowBailoutIncompleteVar] xkeycaps-2.47/xkeycaps.c:186:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNfromVert [valueFlowBailoutIncompleteVar] xkeycaps-2.47/xkeycaps.c:211:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeymapNotify [valueFlowBailoutIncompleteVar] xkeycaps-2.47/xkeycaps.c:297:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xkeycaps-2.47/xkeycaps.c:264:13: warning: If memory allocation fails, then there is a possible null pointer dereference: v2 [nullPointerOutOfMemory] xkeycaps-2.47/xkeycaps.c:263:32: note: Assuming allocation function fails xkeycaps-2.47/xkeycaps.c:263:16: note: Assignment 'v2=(char*)malloc(i2)', assigned value is 0 xkeycaps-2.47/xkeycaps.c:264:13: note: Null pointer dereference xkeycaps-2.47/xkeycaps.c:280:13: warning: If memory allocation fails, then there is a possible null pointer dereference: short_version [nullPointerOutOfMemory] xkeycaps-2.47/xkeycaps.c:279:36: note: Assuming allocation function fails xkeycaps-2.47/xkeycaps.c:279:21: note: Assignment 'short_version=(char*)malloc(i2+14+strlen(version+index)+1)', assigned value is 0 xkeycaps-2.47/xkeycaps.c:280:13: note: Null pointer dereference xkeycaps-2.47/xkeycaps.c:281:27: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] xkeycaps-2.47/xkeycaps.c:279:36: note: Assuming allocation function fails xkeycaps-2.47/xkeycaps.c:279:21: note: Assignment 'short_version=(char*)malloc(i2+14+strlen(version+index)+1)', assigned value is 0 xkeycaps-2.47/xkeycaps.c:281:27: note: Null pointer addition diff: head xkeycaps-2.47/commands.c:2088:51: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head xkeycaps-2.47/commands.c:323:21: warning: If memory allocation fails, then there is a possible null pointer dereference: target [nullPointerOutOfMemory] xkeycaps-2.47/commands.c:321:27: note: Assuming allocation function fails xkeycaps-2.47/commands.c:321:12: note: Assignment 'target=(char*)malloc(L+1)', assigned value is 0 xkeycaps-2.47/commands.c:323:21: note: Null pointer dereference 2.17.0 xkeycaps-2.47/xkeycaps.c:281:27: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] xkeycaps-2.47/xkeycaps.c:279:36: note: Assuming allocation function fails xkeycaps-2.47/xkeycaps.c:279:21: note: Assignment 'short_version=(char*)malloc(i2+14+strlen(version+index)+1)', assigned value is 0 xkeycaps-2.47/xkeycaps.c:281:27: note: Null pointer addition head xkeycaps-2.47/xkeycaps.c:281:27: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] xkeycaps-2.47/xkeycaps.c:279:36: note: Assuming allocation function fails xkeycaps-2.47/xkeycaps.c:279:21: note: Assignment 'short_version=(char*)malloc(i2+14+strlen(version+index)+1)', assigned value is 0 xkeycaps-2.47/xkeycaps.c:281:27: note: Null pointer addition DONE