2026-05-05 21:34 ftp://ftp.de.debian.org/debian/pool/main/x/xbill/xbill_2.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --library=gtk --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: 6278f6b (2026-05-05 15:01:04 +0200) count: 89 89 elapsed-time: 0.9 0.8 head-timing-info: old-timing-info: head results: xbill-2.1/Bill.c:58:12: style: Variable 'computer' can be declared as pointer to const [constVariablePointer] xbill-2.1/Bill.c:129:12: style: Variable 'computer' can be declared as pointer to const [constVariablePointer] xbill-2.1/Bill.c:139:18: style: Parameter 'bill' can be declared as pointer to const [constParameterPointer] xbill-2.1/Bill.c:350:20: style: Parameter 'bill' can be declared as pointer to const [constParameterPointer] xbill-2.1/Bill.c:356:25: style: Parameter 'bill' can be declared as pointer to const [constParameterPointer] xbill-2.1/Bill.c:391:22: style: Parameter 'bill' can be declared as pointer to const [constParameterPointer] xbill-2.1/Cable.c:37:12: style: Variable 'comp1' can be declared as pointer to const [constVariablePointer] xbill-2.1/Cable.c:37:20: style: Variable 'comp2' can be declared as pointer to const [constVariablePointer] xbill-2.1/Cable.c:64:19: style: Parameter 'cable' can be declared as pointer to const [constParameterPointer] xbill-2.1/Cable.c:75:12: style: Variable 'comp1' can be declared as pointer to const [constVariablePointer] xbill-2.1/Cable.c:140:22: style: Parameter 'cable' can be declared as pointer to const [constParameterPointer] xbill-2.1/Computer.c:37:40: style:inconclusive: Function 'Computer_setup' argument 2 names different: declaration 'i' definition 'index'. [funcArgNamesDifferent] xbill-2.1/Computer.h:13:44: note: Function 'Computer_setup' argument 2 names different: declaration 'i' definition 'index'. xbill-2.1/Computer.c:37:40: note: Function 'Computer_setup' argument 2 names different: declaration 'i' definition 'index'. xbill-2.1/Computer.c:29:23: style: Parameter 'computer' can be declared as pointer to const [constParameterPointer] xbill-2.1/Computer.c:50:14: style: Variable 'c' can be declared as pointer to const [constVariablePointer] xbill-2.1/Computer.c:67:23: style: Parameter 'computer' can be declared as pointer to const [constParameterPointer] xbill-2.1/Computer.c:73:31: style: Parameter 'computer' can be declared as pointer to const [constParameterPointer] xbill-2.1/Network.c:104:27: style: Parameter 'bill' can be declared as pointer to const [constParameterPointer] xbill-2.1/Scorelist.c:21:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCOREFILE [valueFlowBailoutIncompleteVar] xbill-2.1/Scorelist.c:41:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCOREFILE [valueFlowBailoutIncompleteVar] xbill-2.1/Scorelist.c:73:17: warning: Either the condition 'str==NULL' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] xbill-2.1/Scorelist.c:71:10: note: Assuming that condition 'str==NULL' is not redundant xbill-2.1/Scorelist.c:73:17: note: Null pointer dereference xbill-2.1/Scorelist.c:88:35: error: Undefined behavior: Variable 'str' is used as parameter and destination in sprintf(). [sprintfOverlappingData] xbill-2.1/Scorelist.c:91:36: error: Undefined behavior: Variable 'str' is used as parameter and destination in sprintf(). [sprintfOverlappingData] xbill-2.1/UI.c:86:17: style: Condition 'map->name==NULL' is always false [knownConditionTrueFalse] xbill-2.1/UI.c:138:21: style:inconclusive: Function 'UI_popup_dialog' argument 1 names different: declaration 'index' definition 'dialog'. [funcArgNamesDifferent] xbill-2.1/UI.h:33:26: note: Function 'UI_popup_dialog' argument 1 names different: declaration 'index' definition 'dialog'. xbill-2.1/UI.c:138:21: note: Function 'UI_popup_dialog' argument 1 names different: declaration 'index' definition 'dialog'. xbill-2.1/UI.c:167:18: style:inconclusive: Function 'UI_draw' argument 1 names different: declaration 'picture' definition 'pict'. [funcArgNamesDifferent] xbill-2.1/UI.h:38:23: note: Function 'UI_draw' argument 1 names different: declaration 'picture' definition 'pict'. xbill-2.1/UI.c:167:18: note: Function 'UI_draw' argument 1 names different: declaration 'picture' definition 'pict'. xbill-2.1/gtk.c:56:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_NONE [valueFlowBailoutIncompleteVar] xbill-2.1/gtk.c:350:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] xbill-2.1/gtk.c:449:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS_MASK [valueFlowBailoutIncompleteVar] xbill-2.1/gtk.c:492:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable action_area [valueFlowBailoutIncompleteVar] xbill-2.1/gtk.c:517:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] xbill-2.1/gtk.c:539:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] xbill-2.1/gtk.c:566:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] xbill-2.1/gtk.c:611:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] xbill-2.1/gtk.c:355:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] xbill-2.1/gtk.c:430:9: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] xbill-2.1/gtk.c:439:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] xbill-2.1/gtk.c:441:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] xbill-2.1/gtk.c:443:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] xbill-2.1/gtk.c:445:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] xbill-2.1/gtk.c:447:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] xbill-2.1/gtk.c:507:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] xbill-2.1/gtk.c:377:13: style: Local variable 'menubar' shadows outer variable [shadowVariable] xbill-2.1/gtk.c:29:37: note: Shadowed declaration xbill-2.1/gtk.c:377:13: note: Shadow variable xbill-2.1/gtk.c:79:8: style: Variable 'str' can be declared as pointer to const [constVariablePointer] xbill-2.1/gtk.c:92:8: style: Variable 'str' can be declared as pointer to const [constVariablePointer] xbill-2.1/gtk.c:134:18: style: Variable 'buttonevent' can be declared as pointer to const [constVariablePointer] xbill-2.1/gtk.c:145:18: style: Variable 'buttonevent' can be declared as pointer to const [constVariablePointer] xbill-2.1/gtk.c:270:31: style: Parameter 'pict' can be declared as pointer to const. However it seems that 'gtk_ui_picture_width' is a callback function, if 'pict' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xbill-2.1/gtk.c:649:2: note: You might need to cast the function pointer here xbill-2.1/gtk.c:270:31: note: Parameter 'pict' can be declared as pointer to const xbill-2.1/gtk.c:275:32: style: Parameter 'pict' can be declared as pointer to const. However it seems that 'gtk_ui_picture_height' is a callback function, if 'pict' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xbill-2.1/gtk.c:650:2: note: You might need to cast the function pointer here xbill-2.1/gtk.c:275:32: note: Parameter 'pict' can be declared as pointer to const xbill-2.1/util.c:10:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xbill-2.1/x11-athena.c:40:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable smeBSBObjectClass [valueFlowBailoutIncompleteVar] xbill-2.1/x11-athena.c:51:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable boxWidgetClass [valueFlowBailoutIncompleteVar] xbill-2.1/x11-athena.c:87:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable boxWidgetClass [valueFlowBailoutIncompleteVar] xbill-2.1/x11-athena.c:96:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transientShellWidgetClass [valueFlowBailoutIncompleteVar] xbill-2.1/x11-athena.c:120:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transientShellWidgetClass [valueFlowBailoutIncompleteVar] xbill-2.1/x11-athena.c:146:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transientShellWidgetClass [valueFlowBailoutIncompleteVar] xbill-2.1/x11-athena.c:177:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coreWidgetClass [valueFlowBailoutIncompleteVar] xbill-2.1/x11-athena.c:184:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNchildren [valueFlowBailoutIncompleteVar] xbill-2.1/x11-athena.c:192:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNhSpace [valueFlowBailoutIncompleteVar] xbill-2.1/x11-athena.c:226:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstring [valueFlowBailoutIncompleteVar] xbill-2.1/x11-athena.c:241:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstring [valueFlowBailoutIncompleteVar] xbill-2.1/x11-athena.c:48:9: style: Local variable 'menubar' shadows outer variable [shadowVariable] xbill-2.1/x11-athena.c:21:21: note: Shadowed declaration xbill-2.1/x11-athena.c:48:9: note: Shadow variable xbill-2.1/x11-athena.c:92:9: style: Local variable 'base' shadows outer variable [shadowVariable] xbill-2.1/x11-athena.c:21:15: note: Shadowed declaration xbill-2.1/x11-athena.c:92:9: note: Shadow variable xbill-2.1/x11-athena.c:118:9: style: Local variable 'base' shadows outer variable [shadowVariable] xbill-2.1/x11-athena.c:21:15: note: Shadowed declaration xbill-2.1/x11-athena.c:118:9: note: Shadow variable xbill-2.1/x11-athena.c:141:9: style: Local variable 'base' shadows outer variable [shadowVariable] xbill-2.1/x11-athena.c:21:15: note: Shadowed declaration xbill-2.1/x11-athena.c:141:9: note: Shadow variable xbill-2.1/x11-motif.c:41:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xmPushButtonWidgetClass [valueFlowBailoutIncompleteVar] xbill-2.1/x11-motif.c:57:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xmCascadeButtonWidgetClass [valueFlowBailoutIncompleteVar] xbill-2.1/x11-motif.c:82:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xmRowColumnWidgetClass [valueFlowBailoutIncompleteVar] xbill-2.1/x11-motif.c:93:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmSTRING_DEFAULT_CHARSET [valueFlowBailoutIncompleteVar] xbill-2.1/x11-motif.c:127:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmSTRING_DEFAULT_CHARSET [valueFlowBailoutIncompleteVar] xbill-2.1/x11-motif.c:146:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmSTRING_DEFAULT_CHARSET [valueFlowBailoutIncompleteVar] xbill-2.1/x11-motif.c:172:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xmDrawingAreaWidgetClass [valueFlowBailoutIncompleteVar] xbill-2.1/x11-motif.c:180:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmSTRING_DEFAULT_CHARSET [valueFlowBailoutIncompleteVar] xbill-2.1/x11-motif.c:227:3: error: Resource leak: str [resourceLeak] xbill-2.1/x11-motif.c:49:9: style: Local variable 'menubar' shadows outer variable [shadowVariable] xbill-2.1/x11-motif.c:22:21: note: Shadowed declaration xbill-2.1/x11-motif.c:49:9: note: Shadow variable xbill-2.1/x11-motif.c:90:17: style: Local variable 'base' shadows outer variable [shadowVariable] xbill-2.1/x11-motif.c:22:15: note: Shadowed declaration xbill-2.1/x11-motif.c:90:17: note: Shadow variable xbill-2.1/x11-motif.c:56:12: style: Variable 'game_menu' is assigned a value that is never used. [unreadVariable] xbill-2.1/x11-motif.c:68:12: style: Variable 'info_menu' is assigned a value that is never used. [unreadVariable] xbill-2.1/x11.c:59:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNx [valueFlowBailoutIncompleteVar] xbill-2.1/x11.c:155:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BitmapOpenFailed [valueFlowBailoutIncompleteVar] xbill-2.1/x11.c:189:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCForeground [valueFlowBailoutIncompleteVar] xbill-2.1/x11.c:221:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNiconPixmap [valueFlowBailoutIncompleteVar] xbill-2.1/x11.c:243:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCGraphicsExposures [valueFlowBailoutIncompleteVar] xbill-2.1/x11.c:327:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IMAGES [valueFlowBailoutIncompleteVar] xbill-2.1/x11.c:360:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNwidth [valueFlowBailoutIncompleteVar] xbill-2.1/x11.c:371:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonPressMask [valueFlowBailoutIncompleteVar] xbill-2.1/x11.c:104:16: style: Variable 'buttonevent' can be declared as pointer to const [constVariablePointer] xbill-2.1/x11.c:115:16: style: Variable 'buttonevent' can be declared as pointer to const [constVariablePointer] xbill-2.1/x11.c:226:28: style: Parameter 'pict' can be declared as pointer to const [constParameterPointer] xbill-2.1/x11.c:231:29: style: Parameter 'pict' can be declared as pointer to const [constParameterPointer] diff: DONE