2026-05-05 03:50 ftp://ftp.de.debian.org/debian/pool/main/s/ssh-askpass/ssh-askpass_1.2.4.1.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: 519958a (2026-05-04 15:03:10 +0200) count: 54 40 elapsed-time: 0.7 0.6 head-timing-info: old-timing-info: head results: x11-ssh-askpass-1.2.4.1/drawing.c:34:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCForeground [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/resources.c:93:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/resources.c:125:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/resources.c:142:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/resources.c:166:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/resources.c:110:16: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] x11-ssh-askpass-1.2.4.1/resources.c:65:16: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11-ssh-askpass-1.2.4.1/resources.c:64:35: note: Assuming allocation function fails x11-ssh-askpass-1.2.4.1/resources.c:64:19: note: Assignment 'str=(char*)malloc(value.size+1)', assigned value is 0 x11-ssh-askpass-1.2.4.1/resources.c:65:16: note: Null pointer dereference x11-ssh-askpass-1.2.4.1/resources.c:51:28: style:inconclusive: Function 'get_string_resource' argument 1 names different: declaration '' definition 'res_name'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:51:44: style:inconclusive: Function 'get_string_resource' argument 2 names different: declaration '' definition 'res_class'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:73:29: style:inconclusive: Function 'get_boolean_resource' argument 1 names different: declaration '' definition 'res_name'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:73:45: style:inconclusive: Function 'get_boolean_resource' argument 2 names different: declaration '' definition 'res_class'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:73:61: style:inconclusive: Function 'get_boolean_resource' argument 3 names different: declaration '' definition 'default_value'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:99:29: style:inconclusive: Function 'get_integer_resource' argument 1 names different: declaration '' definition 'res_name'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:99:45: style:inconclusive: Function 'get_integer_resource' argument 2 names different: declaration '' definition 'res_class'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:99:60: style:inconclusive: Function 'get_integer_resource' argument 3 names different: declaration '' definition 'default_value'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:132:27: style:inconclusive: Function 'get_float_resource' argument 1 names different: declaration '' definition 'res_name'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:132:43: style:inconclusive: Function 'get_float_resource' argument 2 names different: declaration '' definition 'res_class'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:150:27: style:inconclusive: Function 'get_pixel_resource' argument 1 names different: declaration '' definition 'res_name'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:150:43: style:inconclusive: Function 'get_pixel_resource' argument 2 names different: declaration '' definition 'res_class'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:151:16: style:inconclusive: Function 'get_pixel_resource' argument 3 names different: declaration '' definition 'dpy'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:151:30: style:inconclusive: Function 'get_pixel_resource' argument 4 names different: declaration '' definition 'cmap'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:151:49: style:inconclusive: Function 'get_pixel_resource' argument 5 names different: declaration '' definition 'default_value'. [funcArgNamesDifferentUnnamed] x11-ssh-askpass-1.2.4.1/resources.c:51:28: style: Parameter 'res_name' can be declared as pointer to const [constParameterPointer] x11-ssh-askpass-1.2.4.1/resources.c:51:44: style: Parameter 'res_class' can be declared as pointer to const [constParameterPointer] x11-ssh-askpass-1.2.4.1/resources.c:103:9: style: Variable 'ss' can be declared as pointer to const [constVariablePointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:77:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:166:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:191:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:742:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CWBackPixel [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:818:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCForeground [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:1069:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:1160:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CurrentTime [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:1173:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CurrentTime [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:1225:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:1342:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Button1 [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:1422:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:1473:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIMIT_CORE [valueFlowBailoutIncompleteVar] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:359:12: style: Condition 't->next' is always true [knownConditionTrueFalse] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:910:35: style: Checking if unsigned expression 'button.w3.shadowThickness' is less than zero. [unsignedLessThanZero] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:958:35: style: Checking if unsigned expression 'button.w3.shadowThickness' is less than zero. [unsignedLessThanZero] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:75:27: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:113:14: style: Parameter 'defaultText' can be declared as pointer to const [constParameterPointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:126:50: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:134:10: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:174:37: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:178:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:297:36: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:312:36: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:344:38: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:1064:52: style: Parameter 'grabTypeName' can be declared as pointer to const [constParameterPointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:1127:9: style: Variable 'reason' can be declared as pointer to const [constVariablePointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:1304:35: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:963:33: style: Variable 'button.label.w.background' is assigned a value that is never used. [unreadVariable] x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.c:964:33: style: Variable 'button.label.w.foreground' is assigned a value that is never used. [unreadVariable] diff: head x11-ssh-askpass-1.2.4.1/resources.c:132:27: style:inconclusive: Function 'get_float_resource' argument 1 names different: declaration '' definition 'res_name'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:132:43: style:inconclusive: Function 'get_float_resource' argument 2 names different: declaration '' definition 'res_class'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:150:27: style:inconclusive: Function 'get_pixel_resource' argument 1 names different: declaration '' definition 'res_name'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:150:43: style:inconclusive: Function 'get_pixel_resource' argument 2 names different: declaration '' definition 'res_class'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:151:16: style:inconclusive: Function 'get_pixel_resource' argument 3 names different: declaration '' definition 'dpy'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:151:30: style:inconclusive: Function 'get_pixel_resource' argument 4 names different: declaration '' definition 'cmap'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:151:49: style:inconclusive: Function 'get_pixel_resource' argument 5 names different: declaration '' definition 'default_value'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:51:28: style:inconclusive: Function 'get_string_resource' argument 1 names different: declaration '' definition 'res_name'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:51:44: style:inconclusive: Function 'get_string_resource' argument 2 names different: declaration '' definition 'res_class'. [funcArgNamesDifferentUnnamed] 2.20.0 x11-ssh-askpass-1.2.4.1/resources.c:66:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11-ssh-askpass-1.2.4.1/resources.c:64:35: note: Assuming allocation function fails x11-ssh-askpass-1.2.4.1/resources.c:64:19: note: Assignment 'str=(char*)malloc(value.size+1)', assigned value is 0 x11-ssh-askpass-1.2.4.1/resources.c:66:7: note: Null pointer dereference head x11-ssh-askpass-1.2.4.1/resources.c:73:29: style:inconclusive: Function 'get_boolean_resource' argument 1 names different: declaration '' definition 'res_name'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:73:45: style:inconclusive: Function 'get_boolean_resource' argument 2 names different: declaration '' definition 'res_class'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:73:61: style:inconclusive: Function 'get_boolean_resource' argument 3 names different: declaration '' definition 'default_value'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:99:29: style:inconclusive: Function 'get_integer_resource' argument 1 names different: declaration '' definition 'res_name'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:99:45: style:inconclusive: Function 'get_integer_resource' argument 2 names different: declaration '' definition 'res_class'. [funcArgNamesDifferentUnnamed] head x11-ssh-askpass-1.2.4.1/resources.c:99:60: style:inconclusive: Function 'get_integer_resource' argument 3 names different: declaration '' definition 'default_value'. [funcArgNamesDifferentUnnamed] DONE