2025-05-10 22:31 ftp://ftp.de.debian.org/debian/pool/main/g/gnome-themes-extra/gnome-themes-extra_3.28.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-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: beb3362 (2025-05-10 14:33:23 +0200) count: 15 16 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:90:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_LINE_CAP_SQUARE [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:129:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable adwaita_style_parent_class [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:150:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable adwaita_style_parent_class [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:118:22: style: Condition 'wm_is_fallback()' is always true [knownConditionTrueFalse] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:118:22: note: Calling function 'wm_is_fallback' returns 1 gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:118:22: note: Condition 'wm_is_fallback()' is always true gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:167:35: style: Parameter 'style' can be declared as pointer to const [constParameterPointer] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:181:51: style: Parameter 'klass' can be declared as pointer to const [constParameterPointer] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:208:44: style: Parameter 'rc_style' can be declared as pointer to const. However it seems that 'adwaita_rc_style_create_style' is a callback function, if 'rc_style' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:223:28: note: You might need to cast the function pointer here gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:208:44: note: Parameter 'rc_style' can be declared as pointer to const gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:214:40: style: Parameter 'rc_style' can be declared as pointer to const [constParameterPointer] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:227:56: style: Parameter 'klass' can be declared as pointer to const [constParameterPointer] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:159:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MININT [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:196:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_CONTENT_COLOR [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:278:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:351:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TYPE_DIRECTORY [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:134:3: error: Memory leak: data [memleak] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:22:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] diff: 2.17.0 gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:32:33: warning: If memory allocation fails, then there is a possible null pointer dereference: new_substr [nullPointerOutOfMemory] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:62:33: note: Assuming allocation function fails gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:62:33: note: Assignment 'size_string=g_strdup_printf("%dx%d",icon_size,icon_size)', assigned value is 0 gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:64:46: note: Calling function 'replace_str', 3rd argument 'size_string' value is 0 gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:25:7: note: Assuming condition is false gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:32:33: note: Null pointer dereference DONE