2026-05-05 21:40 ftp://ftp.de.debian.org/debian/pool/main/x/xcb-util-xrm/xcb-util-xrm_1.3+git20230724.a17de57.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --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 -j1 platform: Linux-6.12.85+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.70 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.20.0 head-info: 6278f6b (2026-05-05 15:01:04 +0200) count: 60 60 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:209:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xcb_xrm_database_t [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:354:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:394:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:477:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:501:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:357:45: style: Condition 'result==NULL' is always true [knownConditionTrueFalse] xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:348:20: note: Assignment 'result=NULL', assigned value is 0 xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:351:18: note: Assuming condition is false xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:357:45: note: Condition 'result==NULL' is always true xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:78:11: style: Variable 'xenvironment' can be declared as pointer to const [constVariablePointer] xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:185:16: style: Variable 'walk' can be declared as pointer to const [constVariablePointer] xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:199:16: style: Variable 'walk' can be declared as pointer to const [constVariablePointer] xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:238:23: style: Variable 'new_base' can be declared as pointer to const [constVariablePointer] xcb-util-xrm-1.3+git20230724.a17de57/src/database.c:306:11: style: Variable 'new_base' can be declared as pointer to const [constVariablePointer] xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:72:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xcb_xrm_component_t [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:97:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CT_NORMAL [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:127:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CS_INITIAL [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:317:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable components [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:335:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAILURE [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:368:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable components [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:407:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xcb_xrm_entry_t [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:494:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable components [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:370:45: style: Condition 'result==NULL' is always true [knownConditionTrueFalse] xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:361:20: note: Assignment 'result=NULL', assigned value is 0 xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:370:45: note: Condition 'result==NULL' is always true xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:371:18: style: Condition 'is_first' is always true [knownConditionTrueFalse] xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:365:21: note: Assignment 'is_first=true', assigned value is 1 xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:371:18: note: Condition 'is_first' is always true xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:147:6: warning: Either the condition '_entry==NULL' is redundant or there is possible null pointer dereference: _entry. [nullPointerRedundantCheck] xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:148:16: note: Assuming that condition '_entry==NULL' is not redundant xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:147:6: note: Null pointer dereference xcb-util-xrm-1.3+git20230724.a17de57/src/entry.c:121:26: style: Variable 'last' can be declared as pointer to const [constVariablePointer] xcb-util-xrm-1.3+git20230724.a17de57/src/match.c:65:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_UNDECIDED [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/match.c:110:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAILURE [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/match.c:186:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MF_NONE [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/match.c:218:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MF_SKIPPED [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/match.c:239:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xcb_xrm_match_t [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/match.c:254:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xcb_xrm_match_flags_t [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/match.c:184:77: style: Parameter 'comp_db' can be declared as pointer to const [constParameterPointer] xcb-util-xrm-1.3+git20230724.a17de57/src/match.c:185:30: style: Parameter 'comp_name' can be declared as pointer to const [constParameterPointer] xcb-util-xrm-1.3+git20230724.a17de57/src/match.c:185:62: style: Parameter 'comp_class' can be declared as pointer to const [constParameterPointer] xcb-util-xrm-1.3+git20230724.a17de57/src/match.c:253:43: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] xcb-util-xrm-1.3+git20230724.a17de57/src/resource.c:164:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/resource.c:171:6: warning: Either the condition '_resource==NULL' is redundant or there is possible null pointer dereference: _resource. [nullPointerRedundantCheck] xcb-util-xrm-1.3+git20230724.a17de57/src/resource.c:172:19: note: Assuming that condition '_resource==NULL' is not redundant xcb-util-xrm-1.3+git20230724.a17de57/src/resource.c:171:6: note: Null pointer dereference xcb-util-xrm-1.3+git20230724.a17de57/src/util.c:38:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAILURE [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/src/util.c:56:11: style: Variable 'home' can be declared as pointer to const [constVariablePointer] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_database.c:187:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XCB_PROP_MODE_REPLACE [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_database.c:203:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_database.c:222:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:277:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:320:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:341:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:278:13: warning: Possible null pointer dereference: res_name [nullPointer] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:65:35: note: Calling function 'check_get_resource', 2nd argument 'NULL' value is 0 xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:278:13: note: Null pointer dereference xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:278:23: warning: Possible null pointer dereference: res_class [nullPointer] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:66:39: note: Calling function 'check_get_resource', 3rd argument 'NULL' value is 0 xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:278:23: note: Null pointer dereference xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:278:34: warning: Either the condition 'value!=NULL' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:282:19: note: Assuming that condition 'value!=NULL' is not redundant xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:278:34: note: Null pointer dereference xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:320:79: warning: Either the condition 'value!=NULL' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:322:15: note: Assuming that condition 'value!=NULL' is not redundant xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:320:79: note: Null pointer dereference xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:341:81: warning: Either the condition 'value!=NULL' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:343:15: note: Assuming that condition 'value!=NULL' is not redundant xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:341:81: note: Null pointer dereference xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:269:43: style:inconclusive: Function 'check_get_resource' argument 1 names different: declaration 'database' definition 'str_database'. [funcArgNamesDifferent] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:43:43: note: Function 'check_get_resource' argument 1 names different: declaration 'database' definition 'str_database'. xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:269:43: note: Function 'check_get_resource' argument 1 names different: declaration 'database' definition 'str_database'. xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_parser.c:127:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_parser.c:188:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_utils.c:43:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_utils.c:55:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_utils.c:67:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_utils.c:76:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:278:13: error: Null pointer dereference: res_name [ctunullpointer] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:65:30: note: Calling function check_get_resource, 2nd argument is null xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:278:13: note: Dereferencing argument res_name that is null xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:278:23: error: Null pointer dereference: res_class [ctunullpointer] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:66:30: note: Calling function check_get_resource, 3rd argument is null xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:278:23: note: Dereferencing argument res_class that is null xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:278:34: error: Null pointer dereference: value [ctunullpointer] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:64:30: note: Calling function check_get_resource, 4th argument is null xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:278:34: note: Dereferencing argument value that is null xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:320:79: error: Null pointer dereference: value [ctunullpointer] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:240:33: note: Calling function check_convert_to_long, 1st argument is null xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:320:79: note: Dereferencing argument value that is null xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:341:81: error: Null pointer dereference: value [ctunullpointer] xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:221:33: note: Calling function check_convert_to_bool, 1st argument is null xcb-util-xrm-1.3+git20230724.a17de57/tests/tests_match.c:341:81: note: Dereferencing argument value that is null diff: DONE