2025-05-05 23:17 ftp://ftp.de.debian.org/debian/pool/main/libr/librsvg/librsvg_2.60.0+dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=cairo --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-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 581f101 (2025-05-05 21:13:30 +0200) count: 39 38 elapsed-time: 0.4 0.4 head-timing-info: old-timing-info: head results: librsvg-2.60.0/doc/load-and-render.c:26:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] librsvg-2.60.0/gdk-pixbuf-loader/io-svg.c:217:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_PIXBUF_FORMAT_SCALABLE [valueFlowBailoutIncompleteVar] librsvg-2.60.0/gdk-pixbuf-loader/test.c:36:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_INT [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:32:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVG_TYPE_HANDLE [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:68:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVG_TYPE_HANDLE_FLAGS [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:121:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVG_ERROR [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:407:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVG_HANDLE_FLAGS_NONE [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:844:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:885:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_CONTENT_COLOR_ALPHA [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:914:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:950:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVG_UNIT_PX [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1025:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1066:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1140:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1181:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1232:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1315:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1341:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1373:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1392:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1423:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVG_TYPE_HANDLE [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1435:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVG_HANDLE_FLAGS_NONE [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1444:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVG_TYPE_HANDLE [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1464:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVG_TYPE_HANDLE [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1582:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRSVG_VERSION [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1599:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rsvg_major_version [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:1721:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVG_HANDLE_FLAGS_NONE [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/api.c:401:5: warning: Assert statement calls a function which may have desired side effects: 'g_file_get_contents'. [assertWithSideEffect] librsvg-2.60.0/librsvg-c/tests-c/api.c:458:5: warning: Assert statement calls a function which may have desired side effects: 'g_file_get_contents'. [assertWithSideEffect] librsvg-2.60.0/librsvg-c/tests-c/api.c:1733:13: warning: Assert statement calls a function which may have desired side effects: 'ferror'. [assertWithSideEffect] librsvg-2.60.0/librsvg-c/tests-c/api.c:50:42: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] librsvg-2.60.0/librsvg-c/tests-c/api.c:103:40: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] librsvg-2.60.0/librsvg-c/tests-c/api.c:858:37: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] librsvg-2.60.0/librsvg-c/tests-c/api.c:858:56: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] librsvg-2.60.0/librsvg-c/tests-c/test-utils.c:233:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TEST_DIST [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-c/tests-c/test-utils.c:36:14: style: Variable 'row_a' can be declared as pointer to const [constVariablePointer] librsvg-2.60.0/librsvg-c/tests-c/test-utils.c:36:22: style: Variable 'row_b' can be declared as pointer to const [constVariablePointer] librsvg-2.60.0/librsvg-rebind/librsvg-rebind/sys/tests/constant.c:32:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVG_ERROR_FAILED [valueFlowBailoutIncompleteVar] librsvg-2.60.0/librsvg-rebind/librsvg-rebind/sys/tests/layout.c:11:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RsvgDimensionData [valueFlowBailoutIncompleteVar] diff: 2.17.0 librsvg-2.60.0/librsvg-c/tests-c/api.c:1718:19: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] librsvg-2.60.0/librsvg-c/tests-c/api.c:1711:39: note: Assuming allocation function fails librsvg-2.60.0/librsvg-c/tests-c/api.c:1711:39: note: Assignment 'filename=g_build_filename(test_utils_get_test_data_path(),fixture_data->fixture,NULL)', assigned value is 0 librsvg-2.60.0/librsvg-c/tests-c/api.c:1718:19: note: Null pointer dereference head librsvg-2.60.0/librsvg-c/tests-c/api.c:401:5: warning: Assert statement calls a function which may have desired side effects: 'g_file_get_contents'. [assertWithSideEffect] head librsvg-2.60.0/librsvg-c/tests-c/api.c:458:5: warning: Assert statement calls a function which may have desired side effects: 'g_file_get_contents'. [assertWithSideEffect] DONE