Error: GCC_ANALYZER_WARNING (CWE-121): [#def1] mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-box-layout.c: scope_hint: In function ‘distribute_natural_allocation’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-box-layout.c:606:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read /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. /usr/include/graphene-1.0/graphene-gobject.h:28: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-types.h:30: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-layout-manager.h:31: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-box-layout.h:34: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-box-layout.c:53: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-box-layout.c:566:3: note: in expansion of macro ‘g_return_val_if_fail’ # 604| float glue = (extra_space + i) / (i + 1.0f); # 605| float gap = # 606|-> sizes[(spreading[i])].natural_size - sizes[(spreading[i])].minimum_size; # 607| # 608| float extra = MIN (glue, gap); Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-event.c: scope_hint: In function ‘generate_event_description’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-event.c:2534:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘event’ /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. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-types.h:44: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-bitmap.h:41: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl.h:48: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-backend.h:32: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-backend-private.h:24: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-event.c:28: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-event.c:1102:3: note: in expansion of macro ‘g_return_val_if_fail’ # 2532| generate_event_description (const ClutterEvent *event) # 2533| { # 2534|-> switch (event->type) # 2535| { # 2536| case CLUTTER_KEY_PRESS: Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture-action.c: scope_hint: In function ‘gesture_update_motion_point’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture-action.c:239:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘point’ # 237| clutter_event_get_coords (event, &motion_x, &motion_y); # 238| # 239|-> clutter_event_free (point->last_event); # 240| point->last_event = clutter_event_copy (event); # 241| Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture-action.c: scope_hint: In function ‘gesture_update_release_point’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture-action.c:260:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘point’ # 258| clutter_event_get_coords (event, &point->release_x, &point->release_y); # 259| # 260|-> clutter_event_free (point->last_event); # 261| point->last_event = clutter_event_copy (event); # 262| Error: GCC_ANALYZER_WARNING (CWE-476): [#def5] mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture-action.c: scope_hint: In function ‘gesture_point_pass_threshold’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture-action.c:291:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘point’ /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. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-debug.h:3: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture-action.c:87: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture-action.c:1340:3: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. /usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-actor.h:33: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-main.h:30: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-debug.h:5: included_from: Included from here. /usr/include/glib-2.0/gobject/gtype.h:1719:40: note: in definition of macro ‘G_DECLARE_DERIVABLE_TYPE’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ /usr/include/glib-2.0/gobject/gtype.h:1720:12: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture-action.h:39:1: note: in expansion of macro ‘G_DECLARE_DERIVABLE_TYPE’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ /usr/include/glib-2.0/gobject/gtype.h:1720:12: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture-action.h:39:1: note: in expansion of macro ‘G_DECLARE_DERIVABLE_TYPE’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture-action.c:1340:3: note: in expansion of macro ‘g_return_if_fail’ # 289| clutter_gesture_action_get_threshold_trigger_distance (action, &threshold_x, &threshold_y); # 290| # 291|-> if ((fabsf (point->press_y - motion_y) < threshold_y) && # 292| (fabsf (point->press_x - motion_x) < threshold_x)) # 293| return TRUE; Error: COMPILER_WARNING (CWE-563): [#def6] mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture.c: scope_hint: In function ‘debug_message’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-gesture.c:185:19: warning[-Wunused-but-set-variable]: variable ‘name’ set but not used # 185 | const char *name; # | ^~~~ # 183| va_list args; # 184| char *str; # 185|-> const char *name; # 186| # 187| va_start (args, format); Error: COMPILER_WARNING (CWE-563): [#def7] mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-stage.c: scope_hint: In function ‘clutter_stage_notify_grab_on_pointer_entry’ mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-stage.c:3584:24: warning[-Wunused-variable]: unused variable ‘priv’ # 3584 | ClutterStagePrivate *priv = clutter_stage_get_instance_private (stage); # | ^~~~ # 3582| ClutterEventType event_type = CLUTTER_NOTHING; # 3583| ClutterActor *topmost, *deepmost; # 3584|-> ClutterStagePrivate *priv = clutter_stage_get_instance_private (stage); # 3585| if (!entry->current_actor) # 3586| return; Error: GCC_ANALYZER_WARNING (CWE-476): [#def8] mutter-47.1-build/mutter-47.1/cogl/cogl-pango/cogl-pango-render.c: scope_hint: In function ‘cogl_pango_renderer_get_cached_glyph’ mutter-47.1-build/mutter-47.1/cogl/cogl-pango/cogl-pango-render.c:497:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘renderer’ # 495| { # 496| CoglPangoRenderer *priv = COGL_PANGO_RENDERER (renderer); # 497|-> CoglPangoRendererCaches *caches = (priv->use_mipmapping ? # 498| &priv->mipmap_caches : # 499| &priv->no_mipmap_caches); Error: GCC_ANALYZER_WARNING (CWE-688): [#def9] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-attribute.c: scope_hint: In function ‘_cogl_attribute_register_attribute_name’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-attribute.c:144:7: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ 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. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-util.h:33: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-attribute.c:36: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-attribute.c:140:21: note: in expansion of macro ‘g_strdup’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-attribute.c: scope_hint: In function ‘_cogl_attribute_register_attribute_name’ /usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. /usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null # 142| name_state->name = NULL; # 143| name_state->name_index = name_index; # 144|-> if (strncmp (name, "cogl_", 5) == 0) # 145| { # 146| if (!validate_cogl_attribute_name (name, Error: GCC_ANALYZER_WARNING (CWE-476): [#def10] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-bitmap.c: scope_hint: In function ‘_cogl_bitmap_new_shared’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-bitmap.c:270:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 268| NULL /* data */); # 269| # 270|-> bmp->shared_bmp = g_object_ref (shared_bmp); # 271| # 272| return bmp; Error: GCC_ANALYZER_WARNING (CWE-476): [#def11] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-bitmap.c: scope_hint: In function ‘cogl_bitmap_new_from_buffer’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-bitmap.c:293:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /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. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-util.h:33: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-bitmap.c:33: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-bitmap.c:285:3: 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’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-buffer.h:70:38: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-bitmap.c:285:25: note: in expansion of macro ‘COGL_IS_BUFFER’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-bitmap.c:285:3: 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’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-buffer.h:70:38: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-bitmap.c:285:25: note: in expansion of macro ‘COGL_IS_BUFFER’ # 291| NULL /* data */); # 292| # 293|-> bmp->buffer = g_object_ref (buffer); # 294| bmp->data = GINT_TO_POINTER (offset); # 295| Error: GCC_ANALYZER_WARNING (CWE-465): [#def12] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-blend-string.c: scope_hint: In function ‘parse_argument’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-blend-string.c:700:10: warning[-Wanalyzer-deref-before-check]: check of ‘p’ for NULL after already dereferencing it /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. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-blend-string.c:39: included_from: Included from here. /usr/include/glib-2.0/glib/gstrfuncs.h:86:29: note: in definition of macro ‘g_ascii_isspace’ # 698| } # 699| } # 700|-> while (p++); # 701| # 702| error: Error: GCC_ANALYZER_WARNING (CWE-476): [#def13] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-framebuffer.c:1058:6: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-framebuffer.c: scope_hint: In function ‘cogl_blit_framebuffer’ /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. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-flags.h:34: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-debug.h:34: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-framebuffer.c:36: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-framebuffer.c:1174:3: note: in expansion of macro ‘g_return_val_if_fail’ # 1056| CoglFramebufferState state) # 1057| { # 1058|-> ctx->driver_vtable->flush_framebuffer_state (ctx, # 1059| draw_buffer, # 1060| read_buffer, Error: CPPCHECK_WARNING (CWE-758): [#def14] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-half-float.c:97: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 95| const int flt_m = fi.i & 0x7fffff; # 96| const int flt_e = (fi.i >> 23) & 0xff; # 97|-> const int flt_s = (fi.i >> 31) & 0x1; # 98| int s, e, m = 0; # 99| uint16_t result; Error: GCC_ANALYZER_WARNING (CWE-476): [#def15] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-matrix-stack.c: scope_hint: In function ‘cogl_matrix_entry_calculate_translation’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-matrix-stack.c:573:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head0’ # 571| } # 572| # 573|-> if (head0->data != head1->data) # 574| return FALSE; # 575| Error: GCC_ANALYZER_WARNING (CWE-476): [#def16] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-matrix-stack.c:573:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head1’ # 571| } # 572| # 573|-> if (head0->data != head1->data) # 574| return FALSE; # 575| Error: GCC_ANALYZER_WARNING (CWE-476): [#def17] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-matrix-stack.c:583:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head1’ # 581| while (count--) # 582| { # 583|-> if (head0->data != head1->data) # 584| break; # 585| common_ancestor0 = head0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def18] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline-layer.c: scope_hint: In function ‘_cogl_pipeline_layer_compare_differences’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline-layer.c:565:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head0’ # 563| common_ancestor0 = head0; # 564| common_ancestor1 = head1; # 565|-> head0 = head0->next; # 566| head1 = head1->next; # 567| count = MIN (len0, len1) - 1; Error: CPPCHECK_WARNING (CWE-476): [#def19] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline-layer.c:566: warning[nullPointer]: Possible null pointer dereference: head1 # 564| common_ancestor1 = head1; # 565| head0 = head0->next; # 566|-> head1 = head1->next; # 567| count = MIN (len0, len1) - 1; # 568| while (count--) Error: GCC_ANALYZER_WARNING (CWE-476): [#def20] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline-layer.c:566:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head1’ # 564| common_ancestor1 = head1; # 565| head0 = head0->next; # 566|-> head1 = head1->next; # 567| count = MIN (len0, len1) - 1; # 568| while (count--) Error: GCC_ANALYZER_WARNING (CWE-476): [#def21] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline-layer.c:570:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head1’ # 568| while (count--) # 569| { # 570|-> if (head0->data != head1->data) # 571| break; # 572| common_ancestor0 = head0; Error: CPPCHECK_WARNING (CWE-758): [#def22] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline-layer.c:619: error[shiftTooManyBits]: Shifting 64-bit value by 9998 bits is undefined behaviour # 617| for (i = 0; TRUE; i++) # 618| { # 619|-> unsigned long state = (1L<<i); # 620| # 621| if (state & found) Error: GCC_ANALYZER_WARNING (CWE-476): [#def23] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline-state.c: scope_hint: In function ‘_cogl_pipeline_compare_uniform_differences’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline-state.c:1439:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head0’ # 1437| common_ancestor0 = head0; # 1438| common_ancestor1 = head1; # 1439|-> head0 = head0->next; # 1440| head1 = head1->next; # 1441| count = MIN (len0, len1) - 1; Error: CPPCHECK_WARNING (CWE-476): [#def24] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline-state.c:1440: warning[nullPointer]: Possible null pointer dereference: head1 # 1438| common_ancestor1 = head1; # 1439| head0 = head0->next; # 1440|-> head1 = head1->next; # 1441| count = MIN (len0, len1) - 1; # 1442| while (count--) Error: GCC_ANALYZER_WARNING (CWE-476): [#def25] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline-state.c:1440:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head1’ # 1438| common_ancestor1 = head1; # 1439| head0 = head0->next; # 1440|-> head1 = head1->next; # 1441| count = MIN (len0, len1) - 1; # 1442| while (count--) Error: GCC_ANALYZER_WARNING (CWE-476): [#def26] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline-state.c:1444:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head1’ # 1442| while (count--) # 1443| { # 1444|-> if (head0->data != head1->data) # 1445| break; # 1446| common_ancestor0 = head0; Error: CPPCHECK_WARNING (CWE-476): [#def27] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline.c:1908: warning[nullPointer]: Possible null pointer dereference: head1 # 1906| common_ancestor1 = head1; # 1907| head0 = head0->next; # 1908|-> head1 = head1->next; # 1909| count = MIN (len0, len1) - 1; # 1910| while (count--) Error: CPPCHECK_WARNING (CWE-758): [#def28] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline.c:1952: error[shiftTooManyBits]: Shifting 64-bit value by 9998 bits is undefined behaviour # 1950| for (i = 0; TRUE; i++) # 1951| { # 1952|-> unsigned long state = (1L<<i); # 1953| # 1954| if (state & found) Error: CPPCHECK_WARNING (CWE-758): [#def29] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:166: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 164| e = 0x7ff; # 165| m = 0; # 166|-> result.u = (s << 63) + (e << 52) + m; # 167| result.u -= 1; # 168| return result.f; Error: CPPCHECK_WARNING (CWE-758): [#def30] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:176: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 174| e = 0; # 175| # 176|-> result.u = (s << 63) + (e << 52) + m; # 177| return result.f; # 178| } Error: CPPCHECK_WARNING (CWE-758): [#def31] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:203: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 201| e = 0xff; # 202| m = 0; # 203|-> result.u = (s << 31) + (e << 23) + m; # 204| result.u -= !round_increment; # 205| return result.f; Error: CPPCHECK_WARNING (CWE-758): [#def32] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:216: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 214| e = 0; # 215| # 216|-> result.u = (s << 31) + (e << 23) + m; # 217| return result.f; # 218| } Error: CPPCHECK_WARNING (CWE-758): [#def33] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:650: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 648| { # 649| di_type result; # 650|-> result.u = (s << 63) + ((m ? e : 0) << 52) + (m << (shift_dist - 10)); # 651| return result.f; # 652| } Error: CPPCHECK_WARNING (CWE-758): [#def34] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:823: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 821| di_type result; # 822| e = 0x7ff; # 823|-> result.u = (s << 63) + (e << 52) + 0x1; # 824| return result.f; # 825| } Error: CPPCHECK_WARNING (CWE-758): [#def35] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:857: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 855| # 856| di_type result; # 857|-> result.u = (s << 63) + (e << 52) + (m_diff << shift_dist); # 858| return result.f; # 859| } Error: CPPCHECK_WARNING (CWE-758): [#def36] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:988: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 986| di_type result; # 987| e = 0x7ff; # 988|-> result.u = (s << 63) + (e << 52) + 0x1; # 989| return result.f; # 990| } Error: CPPCHECK_WARNING (CWE-758): [#def37] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:994: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 992| di_type result; # 993| e = 0x7ff; # 994|-> result.u = (s << 63) + (e << 52) + 0; # 995| return result.f; # 996| } Error: CPPCHECK_WARNING (CWE-758): [#def38] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1010: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 1008| di_type result; # 1009| e = 0x7ff; # 1010|-> result.u = (s << 63) + (e << 52) + 0x1; # 1011| return result.f; # 1012| } Error: CPPCHECK_WARNING (CWE-758): [#def39] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1016: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 1014| di_type result; # 1015| e = 0x7ff; # 1016|-> result.u = (s << 63) + (e << 52) + 0; # 1017| return result.f; # 1018| } Error: CPPCHECK_WARNING (CWE-758): [#def40] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1026: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 1024| /* 'a' is zero. Return zero */ # 1025| di_type result; # 1026|-> result.u = (s << 63) + 0; # 1027| return result.f; # 1028| } Error: CPPCHECK_WARNING (CWE-758): [#def41] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1037: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 1035| /* 'b' is zero. Return zero */ # 1036| di_type result; # 1037|-> result.u = (s << 63) + 0; # 1038| return result.f; # 1039| } Error: CPPCHECK_WARNING (CWE-758): [#def42] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1119: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 1117| di_type result; # 1118| e = 0x7ff; # 1119|-> result.u = (s << 63) + (e << 52) + 0x1; # 1120| return result.f; # 1121| } Error: CPPCHECK_WARNING (CWE-758): [#def43] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1128: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 1126| di_type result; # 1127| e = 0x7ff; # 1128|-> result.u = (s << 63) + (e << 52) + 0x1; # 1129| return result.f; # 1130| } Error: CPPCHECK_WARNING (CWE-758): [#def44] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1135: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 1133| di_type result; # 1134| e = 0x7ff; # 1135|-> result.u = (s << 63) + (e << 52) + 0; # 1136| return result.f; # 1137| } Error: CPPCHECK_WARNING (CWE-758): [#def45] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1157: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 1155| di_type result; # 1156| e = 0x7ff; # 1157|-> result.u = (s << 63) + (e << 52) + 0x1; # 1158| return result.f; # 1159| } Error: CPPCHECK_WARNING (CWE-758): [#def46] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1166: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 1164| di_type result; # 1165| e = 0x7ff; # 1166|-> result.u = (s << 63) + (e << 52) + 0x1; # 1167| return result.f; # 1168| } Error: CPPCHECK_WARNING (CWE-758): [#def47] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1173: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 1171| di_type result; # 1172| e = 0x7ff; # 1173|-> result.u = (s << 63) + (e << 52) + 0; # 1174| return result.f; # 1175| } Error: CPPCHECK_WARNING (CWE-758): [#def48] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1334: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour # 1332| /* Return zero */ # 1333| di_type result; # 1334|-> result.u = (s << 63) + 0; # 1335| return result.f; # 1336| } Error: CPPCHECK_WARNING (CWE-758): [#def49] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1443: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1441| fi_type result; # 1442| e = 0xff; # 1443|-> result.u = (s << 31) + (e << 23) + 0x1; # 1444| return result.f; # 1445| } Error: CPPCHECK_WARNING (CWE-758): [#def50] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1452: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1450| fi_type result; # 1451| e = 0xff; # 1452|-> result.u = (s << 31) + (e << 23) + 0x1; # 1453| return result.f; # 1454| } Error: CPPCHECK_WARNING (CWE-758): [#def51] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1459: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1457| fi_type result; # 1458| e = 0xff; # 1459|-> result.u = (s << 31) + (e << 23) + 0; # 1460| return result.f; # 1461| } Error: CPPCHECK_WARNING (CWE-758): [#def52] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1481: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1479| fi_type result; # 1480| e = 0xff; # 1481|-> result.u = (s << 31) + (e << 23) + 0x1; # 1482| return result.f; # 1483| } Error: CPPCHECK_WARNING (CWE-758): [#def53] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1490: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1488| fi_type result; # 1489| e = 0xff; # 1490|-> result.u = (s << 31) + (e << 23) + 0x1; # 1491| return result.f; # 1492| } Error: CPPCHECK_WARNING (CWE-758): [#def54] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1497: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1495| fi_type result; # 1496| e = 0xff; # 1497|-> result.u = (s << 31) + (e << 23) + 0; # 1498| return result.f; # 1499| } Error: CPPCHECK_WARNING (CWE-758): [#def55] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1591: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1589| /* Return zero */ # 1590| fi_type result; # 1591|-> result.u = (s << 31) + 0; # 1592| return result.f; # 1593| } Error: CPPCHECK_WARNING (CWE-758): [#def56] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1647: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1645| e = 0xff; # 1646| m = 0x1; # 1647|-> result.u = (s << 31) + (e << 23) + m; # 1648| return result.f; # 1649| } Error: CPPCHECK_WARNING (CWE-758): [#def57] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1654: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1652| fi_type result; # 1653| e = 0xff; # 1654|-> result.u = (s << 31) + (e << 23) + m; # 1655| return result.f; # 1656| } Error: CPPCHECK_WARNING (CWE-758): [#def58] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1663: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1661| fi_type result; # 1662| e = 0; # 1663|-> result.u = (s << 31) + (e << 23) + m; # 1664| return result.f; # 1665| } Error: CPPCHECK_WARNING (CWE-758): [#def59] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-soft-float.c:1673: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1671| fi_type result; # 1672| e = 0; # 1673|-> result.u = (s << 31) + (e << 23) + m; # 1674| return result.f; # 1675| } Error: GCC_ANALYZER_WARNING (CWE-688): [#def60] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-texture-2d-sliced.c: scope_hint: In function ‘_cogl_texture_2d_sliced_set_waste’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-texture-2d-sliced.c:468:19: warning[-Wanalyzer-null-argument]: use of NULL ‘dst’ where non-null expected /usr/include/glib-2.0/glib.h:33: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-flags.h:34: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-debug.h:34: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-texture-2d-sliced.c:38: included_from: Included from here. /usr/include/glib-2.0/glib/garray.h:69:52: note: in definition of macro ‘g_array_index’ /usr/include/glib-2.0/glib/garray.h:69:52: note: in definition of macro ‘g_array_index’ <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 466| for (wx = 0; wx < x_span->waste; wx++) # 467| { # 468|-> memcpy (dst, src, bpp); # 469| dst += bpp; # 470| } Error: GCC_ANALYZER_WARNING (CWE-688): [#def61] mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-texture-2d-sliced.c:526:15: warning[-Wanalyzer-null-argument]: use of NULL ‘dst’ where non-null expected /usr/include/glib-2.0/glib/garray.h:69:52: note: in definition of macro ‘g_array_index’ /usr/include/glib-2.0/glib/garray.h:69:52: note: in definition of macro ‘g_array_index’ <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 524| for (wy = 0; wy < y_span->waste; wy++) # 525| { # 526|-> memcpy (dst, src, intersect_width * bpp); # 527| dst += intersect_width * bpp; # 528| Error: GCC_ANALYZER_WARNING (CWE-476): [#def62] mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c: scope_hint: In function ‘ensure_texture_lookup_generated’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:427:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘shader_state’ mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-node-private.h:36: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-pipeline-private.h:37: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-context-private.h:39: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:39: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:776:3: note: in expansion of macro ‘_cogl_list_for_each’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:776:3: note: in expansion of macro ‘_cogl_list_for_each’ # 425| CoglPipelineSnippetData snippet_data; # 426| # 427|-> if (shader_state->unit_state[unit_index].sampled) # 428| return; # 429| Error: GCC_ANALYZER_WARNING (CWE-476): [#def63] mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c: scope_hint: In function ‘ensure_arg_generated’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:610:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:776:3: note: in expansion of macro ‘_cogl_list_for_each’ # 608| int unit_index = _cogl_pipeline_layer_get_unit_index (layer); # 609| /* Create a sampler uniform for this layer if we haven't already */ # 610|-> if (!shader_state->unit_state[unit_index].combine_constant_used) # 611| { # 612| g_string_append_printf (shader_state->header, Error: GCC_ANALYZER_WARNING (CWE-476): [#def64] mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c: scope_hint: In function ‘append_masked_combine’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:672:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:776:3: note: in expansion of macro ‘_cogl_list_for_each’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:776:3: note: in expansion of macro ‘_cogl_list_for_each’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:776:3: note: in expansion of macro ‘_cogl_list_for_each’ # 670| { # 671| CoglPipelineFragendShaderState *shader_state = get_shader_state (pipeline); # 672|-> GString *shader_source = shader_state->header; # 673| # 674| g_string_append_printf (shader_state->header, Error: GCC_ANALYZER_WARNING (CWE-476): [#def65] mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c: scope_hint: In function ‘ensure_layer_generated’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:799:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:776:3: note: in expansion of macro ‘_cogl_list_for_each’ # 797| # 798| /* Make a global variable for the result of the layer code */ # 799|-> g_string_append_printf (shader_state->header, # 800| "vec4 cogl_layer%i;\n", # 801| layer_index); Error: GCC_ANALYZER_WARNING (CWE-476): [#def66] mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c: scope_hint: In function ‘_cogl_pipeline_fragend_glsl_end’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:991:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 989| CoglContext *ctx = pipeline->context; # 990| # 991|-> if (shader_state->source) # 992| { # 993| const char *source_strings[2]; Error: GCC_ANALYZER_WARNING (CWE-465): [#def67] mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c: scope_hint: In function ‘_cogl_pipeline_progend_glsl_flush_uniforms’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:627:19: warning[-Wanalyzer-deref-before-check]: check of ‘pipeline’ for NULL after already dereferencing it # 625| } # 626| # 627|-> while (pipeline && data.n_differences > 0) # 628| { # 629| if (pipeline->differences & COGL_PIPELINE_STATE_UNIFORMS) Error: GCC_ANALYZER_WARNING (CWE-476): [#def68] mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c: scope_hint: In function ‘_cogl_pipeline_progend_glsl_pre_paint’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1040:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 1038| projection_entry, # 1039| (needs_flip && # 1040|-> program_state->flip_uniform == # 1041| -1)); # 1042| Error: GCC_ANALYZER_WARNING (CWE-476): [#def69] mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1053:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 1051| float v[16]; # 1052| # 1053|-> if (program_state->mvp_uniform != -1) # 1054| need_modelview = need_projection = TRUE; # 1055| else Error: GCC_ANALYZER_WARNING (CWE-476): [#def70] mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1127:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 1125| } # 1126| # 1127|-> if (program_state->flip_uniform != -1 # 1128| && program_state->flushed_flip_state != needs_flip) # 1129| { Error: GCC_ANALYZER_WARNING (CWE-476): [#def71] mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c: scope_hint: In function ‘_cogl_pipeline_vertend_glsl_add_layer’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c:542:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 540| shader_state = get_shader_state (pipeline); # 541| # 542|-> if (shader_state->source == NULL) # 543| return TRUE; # 544| Error: GCC_ANALYZER_WARNING (CWE-476): [#def72] mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c: scope_hint: In function ‘_cogl_pipeline_vertend_glsl_end’ mutter-47.1-build/mutter-47.1/cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c:610:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 608| shader_state = get_shader_state (pipeline); # 609| # 610|-> if (shader_state->source) # 611| { # 612| const char *source_strings[2]; Error: GCC_ANALYZER_WARNING (CWE-686): [#def73] mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘MetaDbusSessionManager *’ {aka ‘struct _MetaDbusSessionManager *’} for variadic argument 1 of ‘var_args’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:377:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:381:7: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:383:7: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ # 322| # 323| ptype = G_PARAM_SPEC_VALUE_TYPE (pspec); # 324|-> G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error); # 325| g_assert (!error); # 326| Error: GCC_ANALYZER_WARNING (CWE-686): [#def74] mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘char *’ for variadic argument 1 of ‘var_args’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:377:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:381:7: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:383:7: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:325:3: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:327:3: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:325:3: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:327:3: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1365:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’ /usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:77:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ /usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:77:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c: scope_hint: In function ‘append_property’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ # 322| # 323| ptype = G_PARAM_SPEC_VALUE_TYPE (pspec); # 324|-> G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error); # 325| g_assert (!error); # 326| Error: GCC_ANALYZER_WARNING (CWE-686): [#def75] mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘const char *’ for variadic argument 1 of ‘var_args’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:377:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:381:7: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:383:7: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:325:3: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:327:3: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ # 322| # 323| ptype = G_PARAM_SPEC_VALUE_TYPE (pspec); # 324|-> G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error); # 325| g_assert (!error); # 326| Error: GCC_ANALYZER_WARNING (CWE-686): [#def76] mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c: scope_hint: In function ‘append_property’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘MetaDbusSessionManager *’ {aka ‘struct _MetaDbusSessionManager *’} for variadic argument 1 of ‘var_args’ /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. /usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.h:21: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:21: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:377:7: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:23: included_from: Included from here. /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:381:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib.h:33: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:383:7: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ # 322| # 323| ptype = G_PARAM_SPEC_VALUE_TYPE (pspec); # 324|-> G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error); # 325| g_assert (!error); # 326| Error: GCC_ANALYZER_WARNING (CWE-686): [#def77] mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘char *’ for variadic argument 1 of ‘var_args’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:377:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:381:7: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:383:7: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:325:3: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:327:3: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:325:3: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:327:3: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1365:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’ /usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:77:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ /usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:77:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c: scope_hint: In function ‘append_property’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ # 322| # 323| ptype = G_PARAM_SPEC_VALUE_TYPE (pspec); # 324|-> G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error); # 325| g_assert (!error); # 326| Error: GCC_ANALYZER_WARNING (CWE-686): [#def78] mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘const char *’ for variadic argument 1 of ‘var_args’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:377:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:381:7: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:383:7: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:325:3: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:327:3: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ # 322| # 323| ptype = G_PARAM_SPEC_VALUE_TYPE (pspec); # 324|-> G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error); # 325| g_assert (!error); # 326| Error: GCC_ANALYZER_WARNING (CWE-686): [#def79] mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘MetaDbusSessionManager *’ {aka ‘struct _MetaDbusSessionManager *’} for variadic argument 1 of ‘var_args’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:377:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:381:7: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:383:7: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ # 322| # 323| ptype = G_PARAM_SPEC_VALUE_TYPE (pspec); # 324|-> G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error); # 325| g_assert (!error); # 326| Error: GCC_ANALYZER_WARNING (CWE-686): [#def80] mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘char *’ for variadic argument 1 of ‘var_args’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:377:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:381:7: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:383:7: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:325:3: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:327:3: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:325:3: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:327:3: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1365:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’ /usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:77:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ /usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:77:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c: scope_hint: In function ‘append_property’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ # 322| # 323| ptype = G_PARAM_SPEC_VALUE_TYPE (pspec); # 324|-> G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error); # 325| g_assert (!error); # 326| Error: GCC_ANALYZER_WARNING (CWE-686): [#def81] mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘const char *’ for variadic argument 1 of ‘var_args’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:377:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:381:7: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:383:7: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:325:3: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:327:3: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ # 322| # 323| ptype = G_PARAM_SPEC_VALUE_TYPE (pspec); # 324|-> G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error); # 325| g_assert (!error); # 326| Error: GCC_ANALYZER_WARNING (CWE-685): [#def82] mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: warning[-Wanalyzer-va-list-exhausted]: ‘var_args’ has no more arguments (1 consumed) /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:377:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:380:7: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:381:7: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:383:7: note: in expansion of macro ‘g_array_append_val’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:321:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ /usr/include/glib-2.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’ mutter-47.1-build/mutter-47.1/src/backends/meta-dbus-session-manager.c:324:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’ (24) ‘var_args’ has no more arguments (1 consumed) # 322| # 323| ptype = G_PARAM_SPEC_VALUE_TYPE (pspec); # 324|-> G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error); # 325| g_assert (!error); # 326| Error: GCC_ANALYZER_WARNING (CWE-476): [#def83] mutter-47.1-build/mutter-47.1/src/backends/meta-input-capture-session.c: scope_hint: In function ‘handle_add_barrier’ mutter-47.1-build/mutter-47.1/src/backends/meta-input-capture-session.c:843:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’ # 841| g_dbus_method_invocation_return_error_literal (invocation, G_DBUS_ERROR, # 842| G_DBUS_ERROR_ACCESS_DENIED, # 843|-> error->message); # 844| return G_DBUS_METHOD_INVOCATION_HANDLED; # 845| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def84] mutter-47.1-build/mutter-47.1/src/backends/meta-remote-desktop-session.c: scope_hint: In function ‘handle_enable_clipboard’ mutter-47.1-build/mutter-47.1/src/backends/meta-remote-desktop-session.c:1346:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’ # 1344| if (!source_remote) # 1345| { # 1346|-> g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, # 1347| G_DBUS_ERROR_FAILED, # 1348| "Invalid mime type list: %s", Error: GCC_ANALYZER_WARNING (CWE-476): [#def85] mutter-47.1-build/mutter-47.1/src/backends/meta-remote-desktop-session.c: scope_hint: In function ‘handle_set_selection’ mutter-47.1-build/mutter-47.1/src/backends/meta-remote-desktop-session.c:1524:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’ # 1522| if (!source_remote) # 1523| { # 1524|-> g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, # 1525| G_DBUS_ERROR_FAILED, # 1526| "Invalid format list: %s", Error: CPPCHECK_WARNING (CWE-190): [#def86] mutter-47.1-build/mutter-47.1/src/backends/meta-screen-cast-stream-src.c:1932: error[integerOverflow]: Signed integer overflow for expression '0-1'. # 1930| MetaPipeWireSource *pipewire_source = (MetaPipeWireSource *) source; # 1931| # 1932|-> pw_loop_leave (pipewire_source->pipewire_loop); # 1933| pw_loop_destroy (pipewire_source->pipewire_loop); # 1934| } Error: CPPCHECK_WARNING (CWE-190): [#def87] mutter-47.1-build/mutter-47.1/src/backends/meta-screen-cast-stream-src.c:1959: error[integerOverflow]: Signed integer overflow for expression '0-1'. # 1957| # 1958| g_source_add_unix_fd (source, # 1959|-> pw_loop_get_fd (pipewire_source->pipewire_loop), # 1960| G_IO_IN | G_IO_ERR); # 1961| Error: CPPCHECK_WARNING (CWE-190): [#def88] mutter-47.1-build/mutter-47.1/src/backends/meta-screen-cast-stream-src.c:1962: error[integerOverflow]: Signed integer overflow for expression '0-1'. # 1960| G_IO_IN | G_IO_ERR); # 1961| # 1962|-> pw_loop_enter (pipewire_source->pipewire_loop); # 1963| g_source_attach (source, NULL); # 1964| g_source_unref (source); Error: CPPCHECK_WARNING (CWE-190): [#def89] mutter-47.1-build/mutter-47.1/src/backends/meta-screen-cast-stream-src.c:2017: error[integerOverflow]: Signed integer overflow for expression '0-1'. # 2015| } # 2016| # 2017|-> pw_core_add_listener (priv->pipewire_core, # 2018| &priv->pipewire_core_listener, # 2019| &core_events, Error: GCC_ANALYZER_WARNING (CWE-688): [#def90] mutter-47.1-build/mutter-47.1/src/backends/native/meta-cursor-renderer-native.c: scope_hint: In function ‘create_cursor_drm_buffer_gbm’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-cursor-renderer-native.c:490:7: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected mutter-47.1-build/mutter-47.1/cogl/cogl/cogl.h:90: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter-types.h:32: included_from: Included from here. mutter-47.1-build/mutter-47.1/clutter/clutter/clutter.h:30: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/meta/common.h:29: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/meta/util.h:28: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/core/util-private.h:28: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-cursor.h:25: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-cursor-renderer.h:28: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/native/meta-cursor-renderer-native.h:25: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/native/meta-cursor-renderer-native.c:26: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/native/meta-cursor-renderer-native.c:1168:3: note: in expansion of macro ‘COGL_TRACE_BEGIN_SCOPED’ /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. mutter-47.1-build/mutter-47.1/src/backends/meta-cursor-renderer.h:25: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/native/meta-cursor-renderer-native.c:856:8: note: in expansion of macro ‘G_APPROX_VALUE’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-cursor-renderer-native.c:486:9: note: in expansion of macro ‘g_alloca0’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-cursor-renderer-native.c:492:15: note: in expansion of macro ‘MIN’ <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 488| for (i = 0; i < height; i++) # 489| { # 490|-> memcpy (buf + i * bo_stride, # 491| pixels + i * stride, # 492| MIN (bo_stride, stride)); Error: GCC_ANALYZER_WARNING (CWE-775): [#def91] mutter-47.1-build/mutter-47.1/src/backends/native/meta-device-pool.c: scope_hint: In function ‘meta_device_pool_open’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-device-pool.c:288:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, open_flags)’ mutter-47.1-build/mutter-47.1/src/meta/util.h:29: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/core/util-private.h:28: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/native/meta-device-pool.h:23: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/native/meta-device-pool-private.h:23: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/native/meta-device-pool.c:20: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/native/meta-device-pool.c:276:7: note: in expansion of macro ‘meta_topic’ # 286| do # 287| { # 288|-> fd = open (path, open_flags); # 289| } # 290| while (fd == -1 && errno == EINTR); Error: GCC_ANALYZER_WARNING (CWE-457): [#def92] mutter-47.1-build/mutter-47.1/src/backends/native/meta-drm-buffer.c: scope_hint: In function ‘meta_drm_buffer_do_ensure_fb_id’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-drm-buffer.c:154:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘depth’ # 152| } # 153| # 154|-> if (drmModeAddFB (fd, # 155| fb_args->width, # 156| fb_args->height, Error: CPPCHECK_WARNING (CWE-457): [#def93] mutter-47.1-build/mutter-47.1/src/backends/native/meta-onscreen-native.c:1979: error[legacyUninitvar]: Uninitialized variable: gbm_format # 1977| g_assert_not_reached (); # 1978| # 1979|-> return gbm_format; # 1980| } # 1981| Error: CPPCHECK_WARNING (CWE-476): [#def94] mutter-47.1-build/mutter-47.1/src/backends/native/meta-pointer-constraint-native.c:568: error[ctunullpointer]: Null pointer dereference: border # 566| float *sy) # 567| { # 568|-> switch (border->blocking_directions) # 569| { # 570| case META_BORDER_MOTION_DIRECTION_POSITIVE_X: Error: CPPCHECK_WARNING (CWE-476): [#def95] mutter-47.1-build/mutter-47.1/src/backends/native/meta-pointer-constraint-native.c:568: warning[nullPointer]: Possible null pointer dereference: border # 566| float *sy) # 567| { # 568|-> switch (border->blocking_directions) # 569| { # 570| case META_BORDER_MOTION_DIRECTION_POSITIVE_X: Error: GCC_ANALYZER_WARNING (CWE-476): [#def96] mutter-47.1-build/mutter-47.1/src/backends/native/meta-pointer-constraint-native.c: scope_hint: In function ‘closest_point_behind_border’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-pointer-constraint-native.c:568:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘border’ # 566| float *sy) # 567| { # 568|-> switch (border->blocking_directions) # 569| { # 570| case META_BORDER_MOTION_DIRECTION_POSITIVE_X: Error: GCC_ANALYZER_WARNING (CWE-476): [#def97] mutter-47.1-build/mutter-47.1/src/backends/native/meta-renderer-native.c: scope_hint: In function ‘meta_renderer_native_create_dma_buf_framebuffer’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-renderer-native.c:663:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 661| CoglContext *cogl_context = # 662| cogl_context_from_renderer_native (renderer_native); # 663|-> CoglDisplay *cogl_display = cogl_context->display; # 664| CoglRenderer *cogl_renderer = cogl_display->renderer; # 665| CoglRendererEGL *cogl_renderer_egl = cogl_renderer->winsys; Error: GCC_ANALYZER_WARNING (CWE-476): [#def98] mutter-47.1-build/mutter-47.1/src/backends/x11/cm/meta-backend-x11-cm.c: scope_hint: In function ‘get_xkbrf_var_defs’ mutter-47.1-build/mutter-47.1/src/backends/x11/cm/meta-backend-x11-cm.c:255:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rules’ # 253| /* Sometimes, the property is a file path, and sometimes it's # 254| not. Normalize it so it's always a file path. */ # 255|-> if (rules[0] == '/') # 256| *rules_p = g_strdup (rules); # 257| else Error: GCC_ANALYZER_WARNING (CWE-476): [#def99] mutter-47.1-build/mutter-47.1/src/backends/x11/meta-seat-x11.c: scope_hint: In function ‘translate_coords’ mutter-47.1-build/mutter-47.1/src/backends/x11/meta-seat-x11.c:1477:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stage_x11’ # 1475| { # 1476| MetaStageImpl *stage_impl = META_STAGE_IMPL (stage_x11); # 1477|-> ClutterActor *stage = CLUTTER_ACTOR (stage_impl->wrapper); # 1478| float stage_width; # 1479| float stage_height; Error: GCC_ANALYZER_WARNING (CWE-476): [#def100] /usr/include/glib-2.0/glib.h:64: 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. /usr/include/gudev-1.0/gudev/gudevenums.h:14: included_from: Included from here. /usr/include/gudev-1.0/gudev/gudev.h:11: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/x11/meta-seat-x11.c:26: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/x11/meta-seat-x11.c: scope_hint: In function ‘meta_seat_x11_translate_event’ mutter-47.1-build/mutter-47.1/src/backends/x11/meta-seat-x11.c:2271:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stage_x11’ /usr/include/glib-2.0/glib/gmessages.h:370:32: note: in definition of macro ‘g_debug’ mutter-47.1-build/mutter-47.1/src/backends/x11/meta-seat-x11.c:23: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/x11/meta-seat-x11.c:2267:9: note: in expansion of macro ‘g_debug’ mutter-47.1-build/mutter-47.1/src/backends/x11/meta-seat-x11.c:2267:9: note: in expansion of macro ‘g_debug’ /usr/include/glib-2.0/glib/gmessages.h:370:32: note: in definition of macro ‘g_debug’ # 2269| ? "key press " # 2270| : "key release", # 2271|-> (unsigned int) stage_x11->xwin, # 2272| xev->deviceid, # 2273| xev->sourceid, Error: GCC_ANALYZER_WARNING (CWE-476): [#def101] mutter-47.1-build/mutter-47.1/src/backends/x11/meta-seat-x11.c:2347:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stage_x11’ /usr/include/glib-2.0/glib/gmessages.h:370:32: note: in definition of macro ‘g_debug’ /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/lib64/glib-2.0/include/glibconfig.h:106:54: note: in definition of macro ‘GINT_TO_POINTER’ /usr/include/glib-2.0/glib/gmessages.h:370:32: note: in definition of macro ‘g_debug’ # 2345| ? "pad button press " # 2346| : "pad button release", # 2347|-> (unsigned int) stage_x11->xwin, # 2348| meta_input_device_x11_get_device_id (device), # 2349| clutter_input_device_get_device_name (device), Error: GCC_ANALYZER_WARNING (CWE-476): [#def102] mutter-47.1-build/mutter-47.1/src/compositor/meta-window-actor.c: scope_hint: In function ‘meta_window_actor_capture_into.part.0’ mutter-47.1-build/mutter-47.1/src/compositor/meta-window-actor.c:1374:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bounds’ /usr/include/glib-2.0/gobject/gtype.h:571:66: note: in expansion of macro ‘_G_TYPE_IGC’ /usr/include/glib-2.0/gobject/gtype.h:1724:12: note: in expansion of macro ‘G_TYPE_INSTANCE_GET_CLASS’ mutter-47.1-build/mutter-47.1/src/meta/meta-window-actor.h:32:1: note: in expansion of macro ‘G_DECLARE_DERIVABLE_TYPE’ mutter-47.1-build/mutter-47.1/src/compositor/meta-window-actor.c: scope_hint: In function ‘meta_window_actor_capture_into.part.0’ # 1372| cr_stride = cairo_image_surface_get_stride (image); # 1373| # 1374|-> if (cr_width == bounds->width && cr_height == bounds->height) # 1375| { # 1376| memcpy (data, cr_data, cr_height * cr_stride); Error: GCC_ANALYZER_WARNING (CWE-401): [#def103] mutter-47.1-build/mutter-47.1/src/core/meta-context-main.c: scope_hint: In function ‘determine_compositor_type’ mutter-47.1-build/mutter-47.1/src/core/meta-context-main.c:179:30: warning[-Wanalyzer-malloc-leak]: leak of ‘find_session_type(error)’ # 177| # 178| ret = sd_pid_get_session (0, &session_id); # 179|-> if (ret == 0 && session_id != NULL) # 180| { # 181| ret = sd_session_get_type (session_id, &session_type); Error: GCC_ANALYZER_WARNING (CWE-401): [#def104] mutter-47.1-build/mutter-47.1/src/core/meta-context-main.c:211:3: warning[-Wanalyzer-malloc-leak]: leak of ‘find_session_type(error)’ # 209| } # 210| } # 211|-> g_strfreev (sessions); # 212| # 213| session_type_env = g_getenv ("XDG_SESSION_TYPE"); Error: CPPCHECK_WARNING (CWE-457): [#def105] mutter-47.1-build/mutter-47.1/src/core/window.c:3957: error[legacyUninitvar]: Uninitialized variable: unconstrained_rect # 3955| g_assert_not_reached (); # 3956| # 3957|-> constrained_rect = unconstrained_rect; # 3958| temporary_rect = window->rect; # 3959| if (flags & META_MOVE_RESIZE_CONSTRAIN && window->monitor) Error: CPPCHECK_WARNING (CWE-909): [#def106] mutter-47.1-build/mutter-47.1/src/core/window.c:3957: error[uninitStructMember]: Uninitialized struct member: unconstrained_rect.height # 3955| g_assert_not_reached (); # 3956| # 3957|-> constrained_rect = unconstrained_rect; # 3958| temporary_rect = window->rect; # 3959| if (flags & META_MOVE_RESIZE_CONSTRAIN && window->monitor) Error: CPPCHECK_WARNING (CWE-909): [#def107] mutter-47.1-build/mutter-47.1/src/core/window.c:3957: error[uninitStructMember]: Uninitialized struct member: unconstrained_rect.width # 3955| g_assert_not_reached (); # 3956| # 3957|-> constrained_rect = unconstrained_rect; # 3958| temporary_rect = window->rect; # 3959| if (flags & META_MOVE_RESIZE_CONSTRAIN && window->monitor) Error: CPPCHECK_WARNING (CWE-909): [#def108] mutter-47.1-build/mutter-47.1/src/core/window.c:3957: error[uninitStructMember]: Uninitialized struct member: unconstrained_rect.x # 3955| g_assert_not_reached (); # 3956| # 3957|-> constrained_rect = unconstrained_rect; # 3958| temporary_rect = window->rect; # 3959| if (flags & META_MOVE_RESIZE_CONSTRAIN && window->monitor) Error: CPPCHECK_WARNING (CWE-909): [#def109] mutter-47.1-build/mutter-47.1/src/core/window.c:3957: error[uninitStructMember]: Uninitialized struct member: unconstrained_rect.y # 3955| g_assert_not_reached (); # 3956| # 3957|-> constrained_rect = unconstrained_rect; # 3958| temporary_rect = window->rect; # 3959| if (flags & META_MOVE_RESIZE_CONSTRAIN && window->monitor) Error: CPPCHECK_WARNING (CWE-457): [#def110] mutter-47.1-build/mutter-47.1/src/core/window.c:4328: error[uninitvar]: Uninitialized variables: rect.x, rect.y # 4326| META_PLACE_FLAG_NONE, # 4327| gravity, # 4328|-> rect); # 4329| } # 4330| Error: GCC_ANALYZER_WARNING (CWE-476): [#def111] mutter-47.1-build/mutter-47.1/src/core/workspace.c: scope_hint: In function ‘meta_workspace_get_onmonitor_region’ mutter-47.1-build/mutter-47.1/src/core/workspace.c:1208:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ mutter-47.1-build/mutter-47.1/src/core/workspace.c: scope_hint: In function ‘meta_workspace_get_onmonitor_region’ # 1206| data = meta_workspace_get_logical_monitor_data (workspace, logical_monitor); # 1207| # 1208|-> return data->logical_monitor_region; # 1209| } # 1210| Error: GCC_ANALYZER_WARNING (CWE-476): [#def112] mutter-47.1-build/mutter-47.1/src/meta/util.h:29: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/core/util-private.h:28: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-cursor.h:25: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-cursor-renderer.h:28: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-backend-private.h:32: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:34: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c: scope_hint: In function ‘meta_launcher_new’ mutter-47.1-build/mutter-47.1/src/meta/meta-debug.h:110:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_error’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:406:11: note: in expansion of macro ‘meta_topic’ /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. mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.h:20: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:20: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:77:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:78:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:78:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:78:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:78:3: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:257:11: note: in expansion of macro ‘meta_topic’ /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. mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:261:24: note: in expansion of macro ‘g_strdup’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c: scope_hint: In function ‘meta_launcher_new’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:77:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:78:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:78:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:78:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:78:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here. /usr/include/glib-2.0/glib.h:52: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:117:21: note: in expansion of macro ‘g_steal_pointer’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c: scope_hint: In function ‘meta_launcher_new’ /usr/include/glib-2.0/glib/glib-autocleanups.h:103:1: note: in expansion of macro ‘G_DEFINE_AUTO_CLEANUP_FREE_FUNC’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c: scope_hint: In function ‘meta_launcher_new’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c: scope_hint: In function ‘meta_launcher_new’ /usr/include/glib-2.0/glib/gmacros.h:1365:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’ /usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:56:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ /usr/include/glib-2.0/glib/glib-autocleanups.h: scope_hint: In function ‘meta_launcher_new’ /usr/include/glib-2.0/glib/gmacros.h:1365:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’ /usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:56:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ /usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’ /usr/include/glib-2.0/glib/glib-autocleanups.h:56:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:406:11: note: in expansion of macro ‘meta_topic’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:406:11: note: in expansion of macro ‘meta_topic’ mutter-47.1-build/mutter-47.1/src/meta/meta-debug.h:110:45: note: in definition of macro ‘meta_topic’ mutter-47.1-build/mutter-47.1/src/meta/meta-debug.h:110:45: note: in definition of macro ‘meta_topic’ mutter-47.1-build/mutter-47.1/src/backends/native/meta-launcher.c:406:11: note: in expansion of macro ‘meta_topic’ # 108| g_autofree char *_topic_message = NULL; \ # 109| \ # 110|-> _topic_message = g_strdup_printf (__VA_ARGS__); \ # 111| meta_log ("%s: %s", meta_topic_to_string (debug_topic), \ # 112| _topic_message); \ Error: GCC_ANALYZER_WARNING (CWE-688): [#def113] mutter-47.1-build/mutter-47.1/src/tests/clutter/interactive/test-main.c: scope_hint: In function ‘main’ mutter-47.1-build/mutter-47.1/src/tests/clutter/interactive/test-main.c:148:33: warning[-Wanalyzer-null-argument]: use of NULL 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. mutter-47.1-build/mutter-47.1/src/tests/clutter/interactive/test-main.c:5: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/tests/clutter/interactive/test-main.c:79:14: note: in expansion of macro ‘g_strdup’ mutter-47.1-build/mutter-47.1/src/tests/clutter/interactive/test-main.c: scope_hint: In function ‘main’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 146| g_print (" - %s:%*s%s\n", # 147| test_unit_names[i], # 148|-> (int) (len - strlen (str)), " ", # 149| str); # 150| Error: CPPCHECK_WARNING (CWE-664): [#def114] mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:47: error[va_start_subsequentCalls]: va_start() or va_copy() called subsequently on 'ap' without va_end() in between. # 45| data.bits = alloca (data.n_bits * (sizeof (int))); # 46| # 47|-> G_VA_COPY (ap, ap_copy); # 48| # 49| for (i = 0; i < data.n_bits; i++) Error: GCC_ANALYZER_WARNING (CWE-404): [#def115] mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c: scope_hint: In function ‘verify_bits’ mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:47:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’ # 45| data.bits = alloca (data.n_bits * (sizeof (int))); # 46| # 47|-> G_VA_COPY (ap, ap_copy); # 48| # 49| for (i = 0; i < data.n_bits; i++) Error: CPPCHECK_WARNING (CWE-664): [#def116] mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:64: error[va_start_subsequentCalls]: va_start() or va_copy() called subsequently on 'ap' without va_end() in between. # 62| int j; # 63| # 64|-> G_VA_COPY (ap, ap_copy); # 65| # 66| for (j = 0; j < data.n_bits; j++) Error: GCC_ANALYZER_WARNING (CWE-404): [#def117] mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:64:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’ /usr/include/glib-2.0/glib.h:89: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-bitmask.h:34: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:3: included_from: Included from here. /usr/include/glib-2.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’ /usr/include/glib-2.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’ mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:57:3: note: in expansion of macro ‘g_assert_cmpint’ # 62| int j; # 63| # 64|-> G_VA_COPY (ap, ap_copy); # 65| # 66| for (j = 0; j < data.n_bits; j++) Error: GCC_ANALYZER_WARNING (CWE-685): [#def118] mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:67:13: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (2 consumed) mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:97:7: note: in expansion of macro ‘_cogl_bitmask_init’ /usr/include/glib-2.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’ /usr/include/glib-2.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’ mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:57:3: note: in expansion of macro ‘g_assert_cmpint’ # 65| # 66| for (j = 0; j < data.n_bits; j++) # 67|-> if (va_arg (ap, int) < i) # 68| upto_popcount++; # 69| Error: CPPCHECK_WARNING (CWE-664): [#def119] mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:74: error[va_start_subsequentCalls]: va_start() or va_copy() called subsequently on 'ap' without va_end() in between. # 72| upto_popcount); # 73| # 74|-> G_VA_COPY (ap, ap_copy); # 75| # 76| for (j = 0; j < data.n_bits; j++) Error: GCC_ANALYZER_WARNING (CWE-404): [#def120] mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:74:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’ mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:97:7: note: in expansion of macro ‘_cogl_bitmask_init’ /usr/include/glib-2.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’ /usr/include/glib-2.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’ mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:57:3: note: in expansion of macro ‘g_assert_cmpint’ /usr/include/glib-2.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’ /usr/include/glib-2.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’ /usr/include/glib-2.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’ mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:70:7: note: in expansion of macro ‘g_assert_cmpint’ # 72| upto_popcount); # 73| # 74|-> G_VA_COPY (ap, ap_copy); # 75| # 76| for (j = 0; j < data.n_bits; j++) Error: CPPCHECK_WARNING (CWE-664): [#def121] mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:84: error[va_end_missing]: va_list 'ap' was opened but not closed by va_end(). # 82| g_assert_cmpint (_cogl_bitmask_get (bitmask, i), ==, (j < data.n_bits)); # 83| } # 84|-> } # 85| # 86| static void Error: CPPCHECK_WARNING (CWE-664): [#def122] mutter-47.1-build/mutter-47.1/src/tests/cogl/unit/test-bitmask.c:84: error[va_end_missing]: va_list 'ap_copy' was opened but not closed by va_end(). # 82| g_assert_cmpint (_cogl_bitmask_get (bitmask, i), ==, (j < data.n_bits)); # 83| } # 84|-> } # 85| # 86| static void Error: GCC_ANALYZER_WARNING (CWE-476): [#def123] /usr/include/glib-2.0/glib.h:89: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/tests/meta-monitor-test-utils.h:22: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/tests/meta-monitor-test-utils.c:22: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/tests/meta-monitor-test-utils.c: scope_hint: In function ‘check_logical_monitor’ mutter-47.1-build/mutter-47.1/src/tests/meta-monitor-test-utils.c:257:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /usr/include/glib-2.0/glib/gtestutils.h:92:80: note: in definition of macro ‘g_assert_cmpfloat’ /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/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/meta-monitor-test-utils.c:243:3: note: in expansion of macro ‘g_assert_nonnull’ mutter-47.1-build/mutter-47.1/src/tests/meta-monitor-test-utils.c:243:3: note: in expansion of macro ‘g_assert_nonnull’ /usr/include/glib-2.0/glib/gtestutils.h:92:80: note: in definition of macro ‘g_assert_cmpfloat’ # 255| ==, # 256| test_logical_monitor->layout.height); # 257|-> g_assert_cmpfloat (logical_monitor->scale, # 258| ==, # 259| test_logical_monitor->scale); Error: GCC_ANALYZER_WARNING (CWE-476): [#def124] /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. mutter-47.1-build/mutter-47.1/src/backends/meta-backend-private.h:25: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:22: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c: scope_hint: In function ‘meta_test_monitor_orientation_changes’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5227:68: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘initial_config’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5226:7: note: in expansion of macro ‘g_assert_true’ /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5193:3: note: in expansion of macro ‘g_set_object’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5193:3: note: in expansion of macro ‘g_set_object’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5195:3: note: in expansion of macro ‘g_set_object’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5195:3: note: in expansion of macro ‘g_set_object’ mutter-47.1-build/mutter-47.1/src/tests/meta-monitor-test-utils.h:25: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:33: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/tests/meta-test-utils.h:36:5: note: in definition of macro ‘META_TEST_LOG_CALL’ mutter-47.1-build/mutter-47.1/src/tests/meta-test-utils.h:36:5: note: in definition of macro ‘META_TEST_LOG_CALL’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5224:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5224:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5225:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5225:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5225:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5226:7: note: in expansion of macro ‘g_assert_true’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5226:7: note: in expansion of macro ‘g_assert_true’ # 5225| g_assert (current != initial_config); # 5226| g_assert_true (meta_monitors_config_key_equal (current->key, # 5227|-> initial_config->key)); # 5228| } # 5229| Error: GCC_ANALYZER_WARNING (CWE-476): [#def125] mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c: scope_hint: In function ‘meta_test_monitor_orientation_changes_for_transformed_panel’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5428:68: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘initial_config’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5427:7: note: in expansion of macro ‘g_assert_true’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5394:3: note: in expansion of macro ‘g_set_object’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5394:3: note: in expansion of macro ‘g_set_object’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5396:3: note: in expansion of macro ‘g_set_object’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5396:3: note: in expansion of macro ‘g_set_object’ mutter-47.1-build/mutter-47.1/src/tests/meta-test-utils.h:36:5: note: in definition of macro ‘META_TEST_LOG_CALL’ mutter-47.1-build/mutter-47.1/src/tests/meta-test-utils.h:36:5: note: in definition of macro ‘META_TEST_LOG_CALL’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5425:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5425:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5426:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5426:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5426:7: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5427:7: note: in expansion of macro ‘g_assert_true’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/tests/monitor-unit-tests.c:5427:7: note: in expansion of macro ‘g_assert_true’ # 5426| g_assert (current != initial_config); # 5427| g_assert_true (meta_monitors_config_key_equal (current->key, # 5428|-> initial_config->key)); # 5429| } # 5430| Error: CPPCHECK_WARNING (CWE-786): [#def126] mutter-47.1-build/mutter-47.1/src/tests/monitor-util-tests.c:67: error[negativeIndex]: Array 'matching_4k_specs[4]' accessed at index -1, which is out of bounds. # 65| { # 66| MetaMonitorModeSpec *mode_spec = &matching_4k_specs[i]; # 67|-> MetaMonitorModeSpec *prev_mode_spec = &matching_4k_specs[i - 1]; # 68| # 69| if (i != 0) Error: CPPCHECK_WARNING (CWE-786): [#def127] mutter-47.1-build/mutter-47.1/src/tests/monitor-util-tests.c:88: error[negativeIndex]: Array 'matching_uhd_specs[3]' accessed at index -1, which is out of bounds. # 86| { # 87| MetaMonitorModeSpec *mode_spec = &matching_uhd_specs[i]; # 88|-> MetaMonitorModeSpec *prev_mode_spec = &matching_uhd_specs[i - 1]; # 89| # 90| if (i != 0) Error: CPPCHECK_WARNING (CWE-786): [#def128] mutter-47.1-build/mutter-47.1/src/tests/monitor-util-tests.c:107: error[negativeIndex]: Array 'matching_hd_specs[2]' accessed at index -1, which is out of bounds. # 105| { # 106| MetaMonitorModeSpec *mode_spec = &matching_hd_specs[i]; # 107|-> MetaMonitorModeSpec *prev_mode_spec = &matching_hd_specs[i - 1]; # 108| # 109| if (i != 0) Error: CPPCHECK_WARNING (CWE-190): [#def129] mutter-47.1-build/mutter-47.1/src/tests/screen-cast-client.c:126: error[integerOverflow]: Signed integer overflow for expression '0-1'. # 124| PipeWireSource *pipewire_source = (PipeWireSource *) source; # 125| # 126|-> pw_loop_leave (pipewire_source->pipewire_loop); # 127| pw_loop_destroy (pipewire_source->pipewire_loop); # 128| } Error: CPPCHECK_WARNING (CWE-190): [#def130] mutter-47.1-build/mutter-47.1/src/tests/screen-cast-client.c:151: error[integerOverflow]: Signed integer overflow for expression '0-1'. # 149| # 150| g_source_add_unix_fd (source, # 151|-> pw_loop_get_fd (pipewire_source->pipewire_loop), # 152| G_IO_IN | G_IO_ERR); # 153| Error: CPPCHECK_WARNING (CWE-190): [#def131] mutter-47.1-build/mutter-47.1/src/tests/screen-cast-client.c:154: error[integerOverflow]: Signed integer overflow for expression '0-1'. # 152| G_IO_IN | G_IO_ERR); # 153| # 154|-> pw_loop_enter (pipewire_source->pipewire_loop); # 155| g_source_attach (source, NULL); # 156| Error: CPPCHECK_WARNING (CWE-190): [#def132] mutter-47.1-build/mutter-47.1/src/tests/screen-cast-client.c:192: error[integerOverflow]: Signed integer overflow for expression '0-1'. # 190| g_assert_nonnull (_pipewire_core); # 191| # 192|-> pw_core_add_listener (_pipewire_core, # 193| &_pipewire_core_listener, # 194| &core_events, Error: GCC_ANALYZER_WARNING (CWE-121): [#def133] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-buffer.c: scope_hint: In function ‘get_offset_and_stride’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-buffer.c:332:21: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-buffer.c:332:21: note: write of 4 bytes to beyond the end of ‘shm_offset’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-buffer.c:332:21: note: valid subscripts for ‘shm_offset’ are ‘[0]’ to ‘[2]’ # 330| int vertical_factor = mt_format_info->vsub[i - 1]; # 331| # 332|-> shm_offset[i] = shm_offset[i - 1] + # 333| (shm_stride[i - 1] * (height / vertical_factor)); # 334| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def134] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-buffer.c: scope_hint: In function ‘process_shm_buffer_damage’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-buffer.c:788:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 786| # 787| format_info = get_supported_shm_format_info (shm_format); # 788|-> multi_format = format_info->multi_texture_format; # 789| mt_format_info = meta_multi_texture_format_get_info (multi_format); # 790| n_planes = mt_format_info->n_planes; Error: GCC_ANALYZER_WARNING (CWE-775): [#def135] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-linux-drm-syncobj.c: scope_hint: In function ‘meta_wayland_drm_syncobj_manager_new’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-linux-drm-syncobj.c:512:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device_path, 524290)’ /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. mutter-47.1-build/mutter-47.1/src/backends/native/meta-device-pool.h:20: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-linux-drm-syncobj.c:24: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-linux-drm-syncobj.c:466:3: note: in expansion of macro ‘g_assert’ # 510| } # 511| # 512|-> drm_fd = open (device_path, O_RDWR | O_CLOEXEC); # 513| if (drm_fd < 0) # 514| { Error: CPPCHECK_WARNING (CWE-457): [#def136] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-popup.c:217: error[uninitvar]: Uninitialized variable: popup->popup_surface # 215| wl_list_for_each_safe (popup, tmp, &grab->all_popups, link) # 216| { # 217|-> MetaWaylandPopupSurface *popup_surface = popup->popup_surface; # 218| # 219| meta_wayland_popup_surface_done (popup_surface); Error: CPPCHECK_WARNING (CWE-457): [#def137] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-popup.c:219: error[uninitvar]: Uninitialized variable: popup_surface # 217| MetaWaylandPopupSurface *popup_surface = popup->popup_surface; # 218| # 219|-> meta_wayland_popup_surface_done (popup_surface); # 220| meta_wayland_popup_destroy (popup); # 221| meta_wayland_popup_surface_finish (popup_surface); Error: CPPCHECK_WARNING (CWE-457): [#def138] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-presentation-time.c:121: error[uninitvar]: Uninitialized variable: feedback->surface # 119| wl_list_for_each_safe (feedback, next, feedbacks, link) # 120| { # 121|-> if (META_IS_WAYLAND_CURSOR_SURFACE (feedback->surface->role)) # 122| continue; # 123| Error: CPPCHECK_WARNING (CWE-457): [#def139] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-presentation-time.c:416: error[uninitvar]: Uninitialized variable: feedback->surface # 414| wl_list_for_each_safe (feedback, next, feedbacks, link) # 415| { # 416|-> if (feedback->surface->role == role) # 417| meta_wayland_presentation_feedback_discard (feedback); # 418| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def140] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-surface.c: scope_hint: In function ‘meta_wayland_surface_begin_grab_op’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-surface.c:1727:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /usr/include/graphene-1.0/graphene.h:46: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl.h:44: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-monitor-manager-private.h:26: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-surface-private.h:24: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-surface.c:23: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-surface.c:1731:38: note: in expansion of macro ‘GRAPHENE_POINT_INIT’ # 1725| constrain it in the same way as it would be if the window was # 1726| being moved/resized via a SSD event. */ # 1727|-> return meta_window_begin_grab_op (window, # 1728| grab_op, # 1729| device, sequence, Error: GCC_ANALYZER_WARNING (CWE-476): [#def141] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c: scope_hint: In function ‘meta_wayland_transaction_add_placement_op’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:501:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /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. mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-surface-private.h:20: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-actor-surface.h:21: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-subsurface.h:21: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.h:21: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:22: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:467:3: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib.h:64: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:467:3: note: in expansion of macro ‘g_return_val_if_fail’ # 499| entry = meta_wayland_transaction_ensure_entry (transaction, surface); # 500| # 501|-> if (!entry->state) # 502| entry->state = meta_wayland_surface_state_new (); # 503| Error: GCC_ANALYZER_WARNING (CWE-476): [#def142] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c: scope_hint: In function ‘meta_wayland_transaction_add_subsurface_position’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:518:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:467:3: note: in expansion of macro ‘g_return_val_if_fail’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:467:3: note: in expansion of macro ‘g_return_val_if_fail’ # 516| # 517| entry = meta_wayland_transaction_ensure_entry (transaction, surface); # 518|-> entry->x = x; # 519| entry->y = y; # 520| entry->has_sub_pos = TRUE; Error: GCC_ANALYZER_WARNING (CWE-476): [#def143] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c: scope_hint: In function ‘meta_wayland_transaction_add_xdg_popup_reposition’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:534:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:467:3: note: in expansion of macro ‘g_return_val_if_fail’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:467:3: note: in expansion of macro ‘g_return_val_if_fail’ # 532| entry = meta_wayland_transaction_ensure_entry (transaction, surface); # 533| # 534|-> if (entry->state) # 535| g_clear_pointer (&entry->state->xdg_positioner, g_free); # 536| else Error: GCC_ANALYZER_WARNING (CWE-476): [#def144] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c: scope_hint: In function ‘meta_wayland_transaction_merge_pending_state’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:605:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:467:3: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-types.h:45: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl-bitmap.h:41: included_from: Included from here. mutter-47.1-build/mutter-47.1/cogl/cogl/cogl.h:48: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-monitor-manager-private.h:26: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-surface-private.h:24: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:468:13: note: in expansion of macro ‘g_object_ref’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:469:3: note: in expansion of macro ‘g_return_val_if_fail’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-transaction.c:469:3: note: in expansion of macro ‘g_return_val_if_fail’ # 603| entry = meta_wayland_transaction_ensure_entry (transaction, surface); # 604| # 605|-> if (!entry->state) # 606| { # 607| entry->state = pending; Error: GCC_ANALYZER_WARNING (CWE-476): [#def145] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-xdg-shell.c: scope_hint: In function ‘xdg_surface_get_toplevel’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-xdg-shell.c:1748:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 1746| meta_wayland_xdg_surface_get_wm_base_resource (xdg_surface); # 1747| # 1748|-> wl_resource_post_error (xdg_wm_base_resource, XDG_WM_BASE_ERROR_ROLE, # 1749| "wl_surface@%d already has a role assigned", # 1750| wl_resource_get_id (surface->resource)); Error: GCC_ANALYZER_WARNING (CWE-476): [#def146] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-xdg-shell.c: scope_hint: In function ‘xdg_surface_get_popup’ mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland-xdg-shell.c:1765:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 1763| MetaWaylandSurface *surface = surface_from_xdg_surface_resource (resource); # 1764| # 1765|-> wl_resource_post_error (priv->shell_client->resource, # 1766| XDG_WM_BASE_ERROR_ROLE, # 1767| "wl_surface@%d already has a role assigned", Error: CPPCHECK_WARNING (CWE-457): [#def147] mutter-47.1-build/mutter-47.1/src/wayland/meta-wayland.c:513: error[uninitvar]: Uninitialized variables: feedback.link, feedback.resource, feedback.surface # 511| wl_list_for_each_safe (feedback, next, feedbacks, link) # 512| { # 513|-> meta_wayland_presentation_feedback_present (feedback, # 514| frame_info, # 515| output); Error: GCC_ANALYZER_WARNING (CWE-775): [#def148] mutter-47.1-build/mutter-47.1/src/wayland/meta-xwayland.c: scope_hint: In function ‘bind_to_abstract_socket’ mutter-47.1-build/mutter-47.1/src/wayland/meta-xwayland.c:324:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor # 322| # 323| fd = socket (PF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0); # 324|-> if (fd < 0) # 325| { # 326| g_set_error (error, G_IO_ERROR, g_io_error_from_errno (errno), Error: GCC_ANALYZER_WARNING (CWE-688): [#def149] mutter-47.1-build/mutter-47.1/src/x11/meta-x11-display.c: scope_hint: In function ‘get_screen_name’ mutter-47.1-build/mutter-47.1/src/x11/meta-x11-display.c:1859:7: warning[-Wanalyzer-null-argument]: use of NULL 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. mutter-47.1-build/mutter-47.1/src/meta/display.h:22: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/core/display-private.h:27: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/x11/meta-x11-display.c:33: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/x11/meta-x11-display.c:1855:11: note: in expansion of macro ‘g_strdup’ mutter-47.1-build/mutter-47.1/src/x11/meta-x11-display.c: scope_hint: In function ‘get_screen_name’ /usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. /usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null # 1857| /* Change display name to specify this screen. # 1858| */ # 1859|-> p = strrchr (dname, ':'); # 1860| if (p) # 1861| { Error: GCC_ANALYZER_WARNING (CWE-775): [#def150] mutter-47.1-build/mutter-47.1/src/x11/session.c: scope_hint: In function ‘save_state’ mutter-47.1-build/mutter-47.1/src/x11/session.c:950:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(full_save_path, "w")’ /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. mutter-47.1-build/mutter-47.1/src/backends/meta-logical-monitor.h:22: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/core/window-private.h:34: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/x11/session.h:31: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/x11/session.c:26: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/x11/session.c:889:3: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/meta/util.h:29: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/core/util-private.h:28: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-crtc-mode.h:23: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-crtc.h:23: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-monitor.h:25: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/backends/meta-logical-monitor.h:24: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/x11/session.c:1057:11: note: in expansion of macro ‘meta_topic’ mutter-47.1-build/mutter-47.1/src/x11/session.c:1057:11: note: in expansion of macro ‘meta_topic’ mutter-47.1-build/mutter-47.1/src/x11/session.c:1057:11: note: in expansion of macro ‘meta_topic’ # 948| */ # 949| # 950|-> fprintf (outfile, "<mutter_session id=\"%s\">\n", # 951| client_id); # 952| Error: GCC_ANALYZER_WARNING (CWE-401): [#def151] mutter-47.1-build/mutter-47.1/src/x11/session.c:950:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(full_save_path, "w")’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ mutter-47.1-build/mutter-47.1/src/x11/session.c:889:3: note: in expansion of macro ‘g_assert’ mutter-47.1-build/mutter-47.1/src/x11/session.c:1057:11: note: in expansion of macro ‘meta_topic’ mutter-47.1-build/mutter-47.1/src/x11/session.c:1057:11: note: in expansion of macro ‘meta_topic’ mutter-47.1-build/mutter-47.1/src/x11/session.c:1057:11: note: in expansion of macro ‘meta_topic’ # 948| */ # 949| # 950|-> fprintf (outfile, "<mutter_session id=\"%s\">\n", # 951| client_id); # 952| Error: GCC_ANALYZER_WARNING (CWE-688): [#def152] mutter-47.1-build/mutter-47.1/src/x11/xprops.c: scope_hint: In function ‘class_hint_from_results’ mutter-47.1-build/mutter-47.1/src/x11/xprops.c:736:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected /usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here. /usr/include/glib-2.0/glib.h:52: 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. mutter-47.1-build/mutter-47.1/src/meta/meta-x11-display.h:22: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/x11/xprops.h:27: included_from: Included from here. mutter-47.1-build/mutter-47.1/src/x11/xprops.c:83: included_from: Included from here. /usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’ mutter-47.1-build/mutter-47.1/src/x11/xprops.c:842:11: note: in expansion of macro ‘g_new0’ /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/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’ mutter-47.1-build/mutter-47.1/src/x11/xprops.c:734:26: note: in expansion of macro ‘g_strdup’ mutter-47.1-build/mutter-47.1/src/x11/xprops.c: scope_hint: In function ‘class_hint_from_results’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 734| class_hint->res_name = g_strdup ((char *) results->prop); # 735| # 736|-> len_name = strlen (class_hint->res_name); # 737| if (len_name == (int) results->n_items) # 738| class_hint->res_class = g_strdup ("");
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-75.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | mutter-47.1-2.fc42 |
store-results-to | /tmp/tmpmg7z5521/mutter-47.1-2.fc42.tar.xz |
time-created | 2024-11-13 02:27:13 |
time-finished | 2024-11-13 02:49:49 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpmg7z5521/mutter-47.1-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpmg7z5521/mutter-47.1-2.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |