2025-05-10 06:00 ftp://ftp.de.debian.org/debian/pool/main/e/eog-plugins/eog-plugins_44.1.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: b3c7f00 (2025-05-09 17:59:20 +0200) count: 62 63 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin-setup.c:71:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin-setup.c:107:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG_PLUGINS [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin-setup.c:51:64: style: Parameter 'setup' can be declared as pointer to const [constParameterPointer] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin-setup.c:128:79: style: Parameter 'klass' can be declared as pointer to const [constParameterPointer] eog-plugins-44.1/plugins/fit-to-width/eog-fit-to-width-plugin.c:124:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BINDING_DEFAULT [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/fit-to-width/eog-fit-to-width-plugin.c:179:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOG_APP [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/fit-to-width/eog-fit-to-width-plugin.c:198:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable eog_fit_to_width_plugin_parent_class [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/fit-to-width/eog-fit-to-width-plugin.c:91:52: style: Parameter 'plugin' can be declared as pointer to const [constParameterPointer] eog-plugins-44.1/plugins/fit-to-width/eog-fit-to-width-plugin.c:205:23: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'eog_fit_to_width_plugin_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/fit-to-width/eog-fit-to-width-plugin.c:248:31: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/fit-to-width/eog-fit-to-width-plugin.c:205:23: note: Parameter 'pspec' can be declared as pointer to const eog-plugins-44.1/plugins/fit-to-width/eog-fit-to-width-plugin.c:225:25: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'eog_fit_to_width_plugin_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/fit-to-width/eog-fit-to-width-plugin.c:247:31: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/fit-to-width/eog-fit-to-width-plugin.c:225:25: note: Parameter 'pspec' can be declared as pointer to const eog-plugins-44.1/plugins/fit-to-width/eog-fit-to-width-plugin.c:254:67: style: Parameter 'klass' can be declared as pointer to const [constParameterPointer] eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:48:51: style: Parameter 'plugin' can be declared as pointer to const [constParameterPointer] eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:63:43: style: Parameter 'activatable' can be declared as pointer to const. However it seems that 'impl_activate' is a callback function, if 'activatable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:136:20: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:63:43: note: Parameter 'activatable' can be declared as pointer to const eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:69:45: style: Parameter 'activatable' can be declared as pointer to const. However it seems that 'impl_deactivate' is a callback function, if 'activatable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:137:22: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:69:45: note: Parameter 'activatable' can be declared as pointer to const eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:79:50: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'eog_light_theme_plugin_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:121:31: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:79:50: note: Parameter 'pspec' can be declared as pointer to const eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:99:52: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'eog_light_theme_plugin_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:120:31: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:99:52: note: Parameter 'pspec' can be declared as pointer to const eog-plugins-44.1/plugins/light-theme/eog-light-theme-plugin.c:128:66: style: Parameter 'klass' can be declared as pointer to const [constParameterPointer] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:163:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIF_TAG_FOCAL_LENGTH [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:235:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIF_TAG_DATE_TIME_ORIGINAL [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:320:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COLORSPACE_RGB [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:498:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOG_IMAGE_DATA_EXIF [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:561:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOG_IMAGE_DATA_EXIF [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:654:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:829:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG_PLUGINS [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:849:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/map/eog-map-plugin.c:47:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG_PLUGINS [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/map/eog-map-plugin.c:54:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG_PLUGINS [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/map/eog-map-plugin.c:105:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIF_FORMAT_RATIONAL [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/map/eog-map-plugin.c:149:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIF_TAG_GPS_LONGITUDE [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/map/eog-map-plugin.c:217:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOG_IMAGE_DATA_EXIF [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/map/eog-map-plugin.c:274:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/map/eog-map-plugin.c:335:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOG_LIST_STORE_EOG_IMAGE [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/map/eog-map-plugin.c:401:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG_PLUGINS [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/map/eog-map-plugin.c:484:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG_PLUGINS [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/map/eog-map-plugin.c:514:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable eog_map_plugin_parent_class [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/postasa/eog-postasa-plugin.c:296:30: error: There is an unknown macro here somewhere. Configuration is required. If G_GOFFSET_FORMAT is a macro then please configure it. [unknownMacro] eog-plugins-44.1/plugins/map/eog-map-plugin.c:521:21: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'eog_map_plugin_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/map/eog-map-plugin.c:565:38: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/map/eog-map-plugin.c:521:21: note: Parameter 'pspec' can be declared as pointer to const eog-plugins-44.1/plugins/map/eog-map-plugin.c:541:23: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'eog_map_plugin_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/map/eog-map-plugin.c:564:38: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/map/eog-map-plugin.c:541:23: note: Parameter 'pspec' can be declared as pointer to const eog-plugins-44.1/plugins/map/eog-map-plugin.c:571:51: style: Parameter 'klass' can be declared as pointer to const [constParameterPointer] eog-plugins-44.1/plugins/postr/eog-postr-plugin.c:41:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG_PLUGINS [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/postr/eog-postr-plugin.c:104:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG_PLUGINS [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/postr/eog-postr-plugin.c:113:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG_PLUGINS [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/postr/eog-postr-plugin.c:131:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG_PLUGINS [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/postr/eog-postr-plugin.c:179:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG_PLUGINS [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:80:28: warning: Either the condition 'buf_ptr' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:124:48: note: Assuming that condition 'buf_ptr' is not redundant eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:127:44: note: Calling function '_eog_util_make_valid_utf8', 1st argument 'buf_ptr' value is 0 eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:80:28: note: Null pointer dereference eog-plugins-44.1/plugins/postr/eog-postr-plugin.c:215:23: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'eog_postr_plugin_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/postr/eog-postr-plugin.c:258:31: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/postr/eog-postr-plugin.c:215:23: note: Parameter 'pspec' can be declared as pointer to const eog-plugins-44.1/plugins/postr/eog-postr-plugin.c:235:25: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'eog_postr_plugin_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/postr/eog-postr-plugin.c:257:31: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/postr/eog-postr-plugin.c:235:25: note: Parameter 'pspec' can be declared as pointer to const eog-plugins-44.1/plugins/postr/eog-postr-plugin.c:264:55: style: Parameter 'klass' can be declared as pointer to const [constParameterPointer] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:66:53: style: Parameter 'plugin' can be declared as pointer to const [constParameterPointer] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:272:42: style: Parameter 'job' can be declared as pointer to const. However it seems that 'manage_exif_data_cb' is a callback function, if 'job' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:565:3: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:272:42: note: Parameter 'job' can be declared as pointer to const eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:343:11: style: Variable 'row_cur_idx' can be declared as pointer to const [constVariablePointer] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:381:41: style: Parameter 'histogram_values' can be declared as pointer to const [constParameterPointer] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:471:45: style: Parameter 'job' can be declared as pointer to const. However it seems that 'calculate_histogram_cb' is a callback function, if 'job' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:580:3: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:471:45: note: Parameter 'job' can be declared as pointer to const eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:767:23: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'eog_exif_display_plugin_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:845:31: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:767:23: note: Parameter 'pspec' can be declared as pointer to const eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:796:25: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'eog_exif_display_plugin_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:844:31: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:796:25: note: Parameter 'pspec' can be declared as pointer to const eog-plugins-44.1/plugins/exif-display/eog-exif-display-plugin.c:870:68: style: Parameter 'klass' can be declared as pointer to const [constParameterPointer] eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:124:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MENU_ATTRIBUTE_ICON [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:179:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable eog_send_by_mail_plugin_parent_class [valueFlowBailoutIncompleteVar] eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:57:52: style: Parameter 'plugin' can be declared as pointer to const [constParameterPointer] eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:186:23: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'eog_send_by_mail_plugin_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:229:31: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:186:23: note: Parameter 'pspec' can be declared as pointer to const eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:206:25: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'eog_send_by_mail_plugin_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:228:31: note: You might need to cast the function pointer here eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:206:25: note: Parameter 'pspec' can be declared as pointer to const eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:235:67: style: Parameter 'klass' can be declared as pointer to const [constParameterPointer] diff: 2.17.0 eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:295:24: warning: If memory allocation fails, then there is a possible null pointer dereference: uri [nullPointerOutOfMemory] eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:268:21: note: Assuming allocation function fails eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:268:21: note: Assignment 'uri=g_string_new("mailto:?attach=")', assigned value is 0 eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:270:29: note: Assuming condition is false eog-plugins-44.1/plugins/send-by-mail/eog-send-by-mail-plugin.c:295:24: note: Null pointer dereference DONE