Task #939 - gdk-pixbuf2-2.42.10-8.fc40/scan-results.err
back to task #939download
Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-animation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-buffer-queue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-csource.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-data.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-io.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-io.c:544:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'module' # 542| g_free (line_buf); # 543| } # 544|-> g_string_free (tmp_buf, TRUE); # 545| g_io_channel_unref (channel); # 546| Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-loader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-loader.c:412:20: warning[core.NullDereference]: Access to field 'module_name' results in a dereference of a null pointer (loaded from field 'image_module') # 410| # 411| g_warning ("Bug! loader '%s' didn't set an error on failure", # 412|-> priv->image_module->module_name); # 413| g_set_error (error, # 414| GDK_PIXBUF_ERROR, Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-pixdata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-scale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c: scope_hint: In function ‘gdk_pixbuf_copy’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:674:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-private.h:31: included_from: Included from here. gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:171: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:661:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-core.h:93:39: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:661:31: note: in expansion of macro ‘GDK_IS_PIXBUF’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:661:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-core.h:93:39: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:661:31: note: in expansion of macro ‘GDK_IS_PIXBUF’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:661:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1021:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-core.h:93:39: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1021:31: note: in expansion of macro ‘GDK_IS_PIXBUF’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1021:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-core.h:93:39: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1021:31: note: in expansion of macro ‘GDK_IS_PIXBUF’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:906:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-core.h:93:39: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:906:31: note: in expansion of macro ‘GDK_IS_PIXBUF’ /usr/include/glib-2.0/glib.h:64: included_from: Included from here. gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:906:9: note: in expansion of macro ‘g_return_val_if_fail’ <built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null # 672| return NULL; # 673| # 674|-> memcpy (buf, gdk_pixbuf_read_pixels (pixbuf), size); # 675| # 676| return gdk_pixbuf_new_from_data (buf, Error: GCC_ANALYZER_WARNING (CWE-476): gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c: scope_hint: In function ‘gdk_pixbuf_fill’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1086:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1064:9: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-core.h:93:39: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1064:27: note: in expansion of macro ‘GDK_IS_PIXBUF’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1064:9: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-core.h:93:39: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1064:27: note: in expansion of macro ‘GDK_IS_PIXBUF’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1064:9: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:879:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-core.h:93:39: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:879:31: note: in expansion of macro ‘GDK_IS_PIXBUF’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:879:9: note: in expansion of macro ‘g_return_val_if_fail’ # 1084| case 3: # 1085| while (w--) { # 1086|-> p[0] = r; # 1087| p[1] = g; # 1088| p[2] = b; Error: GCC_ANALYZER_WARNING (CWE-476): gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1094:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1064:9: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-core.h:93:39: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1064:27: note: in expansion of macro ‘GDK_IS_PIXBUF’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1064:9: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-core.h:93:39: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1064:27: note: in expansion of macro ‘GDK_IS_PIXBUF’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:1064:9: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:879:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf-core.h:93:39: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:879:31: note: in expansion of macro ‘GDK_IS_PIXBUF’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixbuf.c:879:9: note: in expansion of macro ‘g_return_val_if_fail’ # 1092| case 4: # 1093| while (w--) { # 1094|-> p[0] = r; # 1095| p[1] = g; # 1096| p[2] = b; Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/gdk-pixdata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-ani.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-bmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-gif-animation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-icns.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-ico.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-ico.c:653:37: warning[core.NullDereference]: Array access (via field 'LineBuf') results in a null pointer dereference # 651| while (X < context->Header.width) { # 652| /* BGRA */ # 653|-> Pixels[X * 4 + 0] = context->LineBuf[X * 4 + 2]; # 654| Pixels[X * 4 + 1] = context->LineBuf[X * 4 + 1]; # 655| Pixels[X * 4 + 2] = context->LineBuf[X * 4 + 0]; Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-ico.c:675:23: warning[core.NullDereference]: Array access (via field 'LineBuf') results in a null pointer dereference # 673| rowstride * context->Lines); # 674| while (X < context->Header.width) { # 675|-> Pixels[X * 4 + 0] = context->LineBuf[X * 3 + 2]; # 676| Pixels[X * 4 + 1] = context->LineBuf[X * 3 + 1]; # 677| Pixels[X * 4 + 2] = context->LineBuf[X * 3 + 0]; Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-ico.c:704:27: warning[core.NullDereference]: Array access (from variable 'src') results in a null pointer dereference # 702| int v, r, g, b; # 703| # 704|-> v = (int) src[0] | ((int) src[1] << 8); # 705| src += 2; # 706| Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-ico.c:739:30: warning[core.NullDereference]: Array access (via field 'LineBuf') results in a null pointer dereference # 737| /* The joys of having a BGR byteorder */ # 738| Pixels[X * 4 + 0] = # 739|-> context->HeaderBuf[4 * context->LineBuf[X] + INFOHEADER_SIZE + 2 + context->DIBoffset]; # 740| Pixels[X * 4 + 1] = # 741| context->HeaderBuf[4 * context->LineBuf[X] + INFOHEADER_SIZE + 1 +context->DIBoffset]; Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-ico.c:765:9: warning[core.NullDereference]: Array access (via field 'LineBuf') results in a null pointer dereference # 763| guchar Pix; # 764| # 765|-> Pix = context->LineBuf[X/2]; # 766| # 767| Pixels[X * 4 + 0] = Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-ico.c:806:9: warning[core.NullDereference]: Array access (via field 'LineBuf') results in a null pointer dereference # 804| int Bit; # 805| # 806|-> Bit = (context->LineBuf[X / 8]) >> (7 - (X & 7)); # 807| Bit = Bit & 1; # 808| /* The joys of having a BGR byteorder */ Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-ico.c:837:9: warning[core.NullDereference]: Array access (via field 'LineBuf') results in a null pointer dereference # 835| int Bit; # 836| # 837|-> Bit = (context->LineBuf[X / 8]) >> (7 - (X & 7)); # 838| Bit = Bit & 1; # 839| /* The joys of having a BGR byteorder */ Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-ico.c:1327:13: warning[unix.Malloc]: Potential leak of memory pointed to by 'icon' # 1325| if (!ascii_strtoll (*viter, 1, 32, # 1326| &out, error)) # 1327|-> return FALSE; # 1328| icon->depth = out; # 1329| } Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-jpeg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-png.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-png.c: scope_hint: In function ‘real_save_png’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-png.c:970:52: warning[-Wanalyzer-null-argument]: use of NULL ‘value’ where non-null expected /usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here. /usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here. /usr/include/glib-2.0/glib.h:56: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-png.c:30: included_from: Included from here. gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-png.c:968:45: note: in expansion of macro ‘g_strdup’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-png.c: scope_hint: In function ‘real_save_png’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 968| text.text = g_strdup (value); # 969| text.text_length = 0; # 970|-> text.itxt_length = strlen (value); # 971| text.lang = NULL; # 972| text.lang_key = NULL; Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-pnm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-qtif.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-tga.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-tiff.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-xbm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-xbm.c:358:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 356| guchar channel; # 357| if (bits == 0) { # 358|-> reg = *ptr++; # 359| bits = 8; # 360| } Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-xpm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-xpm.c: scope_hint: In function ‘pixbuf_create_from_xpm’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/io-xpm.c:624:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘color’ # 622| color = fallbackcolor; # 623| # 624|-> *pixtmp++ = color->red >> 8; # 625| *pixtmp++ = color->green >> 8; # 626| *pixtmp++ = color->blue >> 8; Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/lzw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1205:3: note: Taking true branch # 1203| int remaining, c, d, i; # 1204| # 1205|-> if (correction != 0) # 1206| { # 1207| remaining = correction; Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1205:7: note: Assuming 'correction' is not equal to 0 # 1203| int remaining, c, d, i; # 1204| # 1205|-> if (correction != 0) # 1206| { # 1207| remaining = correction; Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1208:7: note: Loop condition is true. Entering loop body # 1206| { # 1207| remaining = correction; # 1208|-> for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209| for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1208:35: note: 'c' is not equal to 0 # 1206| { # 1207| remaining = correction; # 1208|-> for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209| for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1208:35: note: Assuming 'c' is not equal to 0 # 1206| { # 1207| remaining = correction; # 1208|-> for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209| for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1208:35: note: Left side of '&&' is true # 1206| { # 1207| remaining = correction; # 1208|-> for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209| for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1208:45: note: 'remaining' is not equal to 0 # 1206| { # 1207| remaining = correction; # 1208|-> for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209| for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1209:2: note: Loop condition is true. Entering loop body # 1207| remaining = correction; # 1208| for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209|-> for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) # 1211| { Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1209:26: note: 'i' is >= 0 # 1207| remaining = correction; # 1208| for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209|-> for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) # 1211| { Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1209:26: note: Assuming 'i' is < 0 # 1207| remaining = correction; # 1208| for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209|-> for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) # 1211| { Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1209:26: note: Assuming 'i' is >= 0 # 1207| remaining = correction; # 1208| for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209|-> for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) # 1211| { Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1209:26: note: Left side of '&&' is true # 1207| remaining = correction; # 1208| for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209|-> for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) # 1211| { Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1209:33: note: Left side of '&&' is false # 1207| remaining = correction; # 1208| for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209|-> for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) # 1211| { Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1209:36: note: 'c' is not equal to 0 # 1207| remaining = correction; # 1208| for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209|-> for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) # 1211| { Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1209:46: note: 'remaining' is not equal to 0 # 1207| remaining = correction; # 1208| for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209|-> for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210| if (*(weights + i) + c >= 0) # 1211| { Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1210:4: note: Taking false branch # 1208| for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209| for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210|-> if (*(weights + i) + c >= 0) # 1211| { # 1212| *(weights + i) += c; Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1210:8: note: Assuming the condition is false # 1208| for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209| for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210|-> if (*(weights + i) + c >= 0) # 1211| { # 1212| *(weights + i) += c; Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1210:23: note: The left operand of '+' is a garbage value # 1208| for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209| for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210|-> if (*(weights + i) + c >= 0) # 1211| { # 1212| *(weights + i) += c; Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1210:23: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value # 1208| for (d = 1, c = correction; c != 0 && remaining != 0; d++, c = correction / d) # 1209| for (i = n_x * n_y - 1; i >= 0 && c != 0 && remaining != 0; i--) # 1210|-> if (*(weights + i) + c >= 0) # 1211| { # 1212| *(weights + i) += c; Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1230:3: note: Taking false branch # 1228| # 1229| /* check n_x doesn't overflow */ # 1230|-> if (G_MAXINT / (SUBSAMPLE * SUBSAMPLE) < n_x) # 1231| return NULL; # 1232| Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1234:3: note: Taking false branch # 1232| # 1233| /* check n_y doesn't overflow */ # 1234|-> if (G_MAXINT / (SUBSAMPLE * SUBSAMPLE * n_x) < n_y) # 1235| return NULL; # 1236| Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1234:7: note: Assuming the condition is false # 1232| # 1233| /* check n_y doesn't overflow */ # 1234|-> if (G_MAXINT / (SUBSAMPLE * SUBSAMPLE * n_x) < n_y) # 1235| return NULL; # 1236| Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1237:13: note: '__s' is not equal to 1 # 1235| return NULL; # 1236| # 1237|-> weights = g_try_new (int, SUBSAMPLE * SUBSAMPLE * n_x * n_y); # 1238| if (!weights) # 1239| return NULL; /* overflow, bail */ Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1237:13: note: Left side of '&&' is false # 1235| return NULL; # 1236| # 1237|-> weights = g_try_new (int, SUBSAMPLE * SUBSAMPLE * n_x * n_y); # 1238| if (!weights) # 1239| return NULL; /* overflow, bail */ Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1237:13: note: Storing uninitialized value # 1235| return NULL; # 1236| # 1237|-> weights = g_try_new (int, SUBSAMPLE * SUBSAMPLE * n_x * n_y); # 1238| if (!weights) # 1239| return NULL; /* overflow, bail */ Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1237:13: note: Taking false branch # 1235| return NULL; # 1236| # 1237|-> weights = g_try_new (int, SUBSAMPLE * SUBSAMPLE * n_x * n_y); # 1238| if (!weights) # 1239| return NULL; /* overflow, bail */ Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1238:3: note: Taking false branch # 1236| # 1237| weights = g_try_new (int, SUBSAMPLE * SUBSAMPLE * n_x * n_y); # 1238|-> if (!weights) # 1239| return NULL; /* overflow, bail */ # 1240| Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1238:7: note: Assuming 'weights' is non-null # 1236| # 1237| weights = g_try_new (int, SUBSAMPLE * SUBSAMPLE * n_x * n_y); # 1238|-> if (!weights) # 1239| return NULL; /* overflow, bail */ # 1240| Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1241:3: note: Loop condition is true. Entering loop body # 1239| return NULL; /* overflow, bail */ # 1240| # 1241|-> for (i_offset=0; i_offset < SUBSAMPLE; i_offset++) # 1242| for (j_offset=0; j_offset < SUBSAMPLE; j_offset++) # 1243| { Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1242:5: note: Loop condition is true. Entering loop body # 1240| # 1241| for (i_offset=0; i_offset < SUBSAMPLE; i_offset++) # 1242|-> for (j_offset=0; j_offset < SUBSAMPLE; j_offset++) # 1243| { # 1244| double weight; Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1249:9: note: Loop condition is false. Execution continues on line 1261 # 1247| int i, j; # 1248| # 1249|-> for (i=0; i < n_y; i++) # 1250| for (j=0; j < n_x; j++) # 1251| { Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1249:19: note: Assuming 'i' is >= 'n_y' # 1247| int i, j; # 1248| # 1249|-> for (i=0; i < n_y; i++) # 1250| for (j=0; j < n_x; j++) # 1251| { Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1261:9: note: Calling 'correct_total' # 1259| } # 1260| # 1261|-> correct_total (pixel_weights, n_x, n_y, total, filter->overall_alpha); # 1262| } # 1263| Error: GCC_ANALYZER_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c: scope_hint: In function ‘tile_make_weights’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1442:19: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:22: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:2394:3: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:2395:3: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:2395:3: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:2396:3: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:2396:3: note: in expansion of macro ‘g_return_if_fail’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1442:19: note: only use operands of an integer type inside the size argument # 1440| int i; # 1441| # 1442|-> pixel_weights = g_try_malloc_n (sizeof (double) * SUBSAMPLE, n); # 1443| if (pixel_weights == NULL) # 1444| return FALSE; Error: GCC_ANALYZER_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c: scope_hint: In function ‘bilinear_box_make_weights’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1601:19: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:2394:3: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:2395:3: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:2395:3: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:2396:3: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:2396:3: note: in expansion of macro ‘g_return_if_fail’ gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/pixops/pixops.c:1601:19: note: only use operands of an integer type inside the size argument # 1599| int offset, i; # 1600| # 1601|-> pixel_weights = g_malloc_n (sizeof (double) * SUBSAMPLE, n); # 1602| if (pixel_weights == NULL) # 1603| return FALSE; Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/queryloaders.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/gdk-pixbuf/queryloaders.c:65:21: warning[deadcode.DeadStores]: Value stored to 'error' during its initialization is never read # 63| { # 64| const GdkPixbufModulePattern *pattern; # 65|-> const char *error = ""; # 66| # 67| for (pattern = info->signature; pattern->prefix; pattern++) Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/redhat-linux-build/tmp-introspect3nsdbqfn/GdkPixdata-2.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/redhat-linux-build/tmp-introspect3nsdbqfn/GdkPixdata-2.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error') Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/redhat-linux-build/tmp-introspectf3kvnj_s/GdkPixbuf-2.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/redhat-linux-build/tmp-introspectf3kvnj_s/GdkPixbuf-2.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error') Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-composite.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-dpi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-fail.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-gif.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-icc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-icon-serialize.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-pixdata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-reftest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-save.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-scale-two-step.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-scale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-short-gif-write.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gdk-pixbuf2-2.42.10-build/gdk-pixbuf-2.42.10/tests/pixbuf-threads.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.