mutter-48.2-1.fc43

List of Findings

Error: COMPILER_WARNING (CWE-1164): [#def1]
mutter-48.2/clutter/clutter/clutter-frame-clock.c: scope_hint: At top level
mutter-48.2/clutter/clutter/clutter-frame-clock.c:169:1: warning[-Wunused-function]: ‘clutter_frame_clock_state_to_string’ defined but not used
#  169 | clutter_frame_clock_state_to_string (ClutterFrameClockState state)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  167|   
#  168|   static const char *
#  169|-> clutter_frame_clock_state_to_string (ClutterFrameClockState state)
#  170|   {
#  171|     switch (state)

Error: COMPILER_WARNING (CWE-563): [#def2]
mutter-48.2/clutter/clutter/clutter-frame-clock.c: scope_hint: In function ‘maybe_update_longterm_max_duration_us’
mutter-48.2/clutter/clutter/clutter-frame-clock.c:402:15: warning[-Wunused-but-set-variable]: variable ‘old_duration_us’ set but not used
#  402 |       int64_t old_duration_us;
#      |               ^~~~~~~~~~~~~~~
#  400|         frame_clock->shortterm_max_update_duration_us)
#  401|       {
#  402|->       int64_t old_duration_us;
#  403|   
#  404|         /* Exponential drop-off toward the short-term max */

Error: COMPILER_WARNING (CWE-563): [#def3]
mutter-48.2/clutter/clutter/clutter-frame-clock.c: scope_hint: In function ‘clutter_frame_clock_dispatch’
mutter-48.2/clutter/clutter/clutter-frame-clock.c:1425:11: warning[-Wunused-but-set-variable]: variable ‘prev_dispatch_interval_us’ set but not used
# 1425 |   int64_t prev_dispatch_interval_us = 0;
#      |           ^~~~~~~~~~~~~~~~~~~~~~~~~
# 1423|     Frame *this_dispatch;
# 1424|     int64_t prev_dispatch_time_us = 0;
# 1425|->   int64_t prev_dispatch_interval_us = 0;
# 1426|     int64_t prev_dispatch_lateness_us = 0;
# 1427|   

Error: COMPILER_WARNING (CWE-563): [#def4]
mutter-48.2/clutter/clutter/clutter-gesture.c: scope_hint: In function ‘debug_message’
mutter-48.2/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): [#def5]
mutter-48.2/clutter/clutter/clutter-settings.c:128:15: warning[-Wunused-but-set-variable]: variable ‘clutter_font_hint_style’ set but not used
#  128 |   const char *clutter_font_hint_style = NULL, *clutter_font_subpixel_order = NULL;
#      |               ^~~~~~~~~~~~~~~~~~~~~~~
#  126|     cairo_antialias_t antialias_mode = CAIRO_ANTIALIAS_GRAY;
#  127|     cairo_subpixel_order_t subpixel_order = CAIRO_SUBPIXEL_ORDER_DEFAULT;
#  128|->   const char *clutter_font_hint_style = NULL, *clutter_font_subpixel_order = NULL;
#  129|   
#  130|     if (self->backend == NULL)

Error: COMPILER_WARNING (CWE-563): [#def6]
mutter-48.2/clutter/clutter/clutter-settings.c: scope_hint: In function ‘clutter_settings_update_font_options’
mutter-48.2/clutter/clutter/clutter-settings.c:128:48: warning[-Wunused-but-set-variable]: variable ‘clutter_font_subpixel_order’ set but not used
#  128 |   const char *clutter_font_hint_style = NULL, *clutter_font_subpixel_order = NULL;
#      |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  126|     cairo_antialias_t antialias_mode = CAIRO_ANTIALIAS_GRAY;
#  127|     cairo_subpixel_order_t subpixel_order = CAIRO_SUBPIXEL_ORDER_DEFAULT;
#  128|->   const char *clutter_font_hint_style = NULL, *clutter_font_subpixel_order = NULL;
#  129|   
#  130|     if (self->backend == NULL)

Error: COMPILER_WARNING (CWE-563): [#def7]
mutter-48.2/clutter/clutter/clutter-stage.c: scope_hint: In function ‘clutter_stage_notify_grab_on_pointer_entry’
mutter-48.2/clutter/clutter/clutter-stage.c:3654:24: warning[-Wunused-variable]: unused variable ‘priv’
# 3654 |   ClutterStagePrivate *priv = clutter_stage_get_instance_private (stage);
#      |                        ^~~~
# 3652|     ClutterEventType event_type = CLUTTER_NOTHING;
# 3653|     ClutterActor *topmost, *deepmost;
# 3654|->   ClutterStagePrivate *priv = clutter_stage_get_instance_private (stage);
# 3655|     if (!entry->current_actor)
# 3656|       return;

Error: CPPCHECK_WARNING (CWE-758): [#def8]
mutter-48.2/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: CPPCHECK_WARNING (CWE-476): [#def9]
mutter-48.2/cogl/cogl/cogl-pipeline-layer.c:608: warning[nullPointer]: Possible null pointer dereference: head1
#  606|     common_ancestor1 = head1;
#  607|     head0 = head0->next;
#  608|->   head1 = head1->next;
#  609|     count = MIN (len0, len1) - 1;
#  610|     while (count--)

Error: CPPCHECK_WARNING (CWE-476): [#def10]
mutter-48.2/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: CPPCHECK_WARNING (CWE-476): [#def11]
mutter-48.2/cogl/cogl/cogl-pipeline.c:1973: warning[nullPointer]: Possible null pointer dereference: head1
# 1971|     common_ancestor1 = head1;
# 1972|     head0 = head0->next;
# 1973|->   head1 = head1->next;
# 1974|     count = MIN (len0, len1) - 1;
# 1975|     while (count--)

Error: CPPCHECK_WARNING (CWE-758): [#def12]
mutter-48.2/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): [#def13]
mutter-48.2/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): [#def14]
mutter-48.2/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): [#def15]
mutter-48.2/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): [#def16]
mutter-48.2/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): [#def17]
mutter-48.2/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): [#def18]
mutter-48.2/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): [#def19]
mutter-48.2/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): [#def20]
mutter-48.2/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): [#def21]
mutter-48.2/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): [#def22]
mutter-48.2/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): [#def23]
mutter-48.2/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): [#def24]
mutter-48.2/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): [#def25]
mutter-48.2/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): [#def26]
mutter-48.2/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): [#def27]
mutter-48.2/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): [#def28]
mutter-48.2/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): [#def29]
mutter-48.2/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): [#def30]
mutter-48.2/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): [#def31]
mutter-48.2/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): [#def32]
mutter-48.2/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): [#def33]
mutter-48.2/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): [#def34]
mutter-48.2/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): [#def35]
mutter-48.2/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): [#def36]
mutter-48.2/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): [#def37]
mutter-48.2/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): [#def38]
mutter-48.2/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): [#def39]
mutter-48.2/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): [#def40]
mutter-48.2/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): [#def41]
mutter-48.2/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): [#def42]
mutter-48.2/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-121): [#def43]
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-box-layout.c:606:15: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-box-layout.c:566:3: branch_true: following ‘true’ branch (when ‘extra_space >= 0.0f’)...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-box-layout.c:568:15: branch_true: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-box-layout.c:598:35: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-box-layout.c:606:15: danger: read of 4 bytes at offset ‘(long unsigned int)(int)(n_requested_sizes + 4294967295) * 4’ exceeds the buffer
#  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): [#def44]
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:493:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1412:1: enter_function: entry to ‘clutter_color_state_params_equals’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1420:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1421:10: branch_true: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1420:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1422:10: branch_true: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1422:10: call_function: calling ‘luminances_equal’ from ‘clutter_color_state_params_equals’
#  491|     other_lum = clutter_color_state_params_get_luminance (other_color_state_params);
#  492|   
#  493|->   return luminance_value_approx_equal (lum->min, other_lum->min, 0.1f) &&
#  494|            luminance_value_approx_equal (lum->max, other_lum->max, 0.1f) &&
#  495|            luminance_value_approx_equal (lum->ref, other_lum->ref, 0.1f);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:493:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1412:1: enter_function: entry to ‘clutter_color_state_params_equals’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1420:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1421:10: branch_true: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1420:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1422:10: branch_true: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1422:10: call_function: calling ‘luminances_equal’ from ‘clutter_color_state_params_equals’
#  491|     other_lum = clutter_color_state_params_get_luminance (other_color_state_params);
#  492|   
#  493|->   return luminance_value_approx_equal (lum->min, other_lum->min, 0.1f) &&
#  494|            luminance_value_approx_equal (lum->max, other_lum->max, 0.1f) &&
#  495|            luminance_value_approx_equal (lum->ref, other_lum->ref, 0.1f);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:971:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1346:1: enter_function: entry to ‘clutter_color_state_params_do_transform’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1377:17: call_function: calling ‘get_luminance_mapping’ from ‘clutter_color_state_params_do_transform’
#  969|     /* this is a very basic, non-contrast preserving way of matching the reference
#  970|      * luminance level */
#  971|->   return (target_lum->ref / lum->ref) * (lum->max / target_lum->max);
#  972|   }
#  973|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:971:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1346:1: enter_function: entry to ‘clutter_color_state_params_do_transform’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1377:17: call_function: calling ‘get_luminance_mapping’ from ‘clutter_color_state_params_do_transform’
#  969|     /* this is a very basic, non-contrast preserving way of matching the reference
#  970|      * luminance level */
#  971|->   return (target_lum->ref / lum->ref) * (lum->max / target_lum->max);
#  972|   }
#  973|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1448:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1426:1: enter_function: entry to ‘clutter_color_state_params_to_string’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1438:9: call_function: calling ‘clutter_color_state_params_get_luminance’ from ‘clutter_color_state_params_to_string’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1438:9: return_function: returning to ‘clutter_color_state_params_to_string’ from ‘clutter_color_state_params_get_luminance’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-color-state-params.c:1448:27: danger: dereference of NULL ‘clutter_color_state_params_get_luminance(color_state)’
# 1446|                             lum->min,
# 1447|                             lum->max,
# 1448|->                           lum->ref);
# 1449|   
# 1450|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-event.c:2534:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘event’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-event.c:2713:1: enter_function: entry to ‘clutter_event_describe’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-event.c:2719:19: call_function: calling ‘clutter_event_get_source_device’ from ‘clutter_event_describe’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-event.c:2719:19: return_function: returning to ‘clutter_event_describe’ from ‘clutter_event_get_source_device’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-event.c:2720:23: call_function: calling ‘generate_event_description’ from ‘clutter_event_describe’
# 2532|   generate_event_description (const ClutterEvent *event)
# 2533|   {
# 2534|->   switch (event->type)
# 2535|       {
# 2536|       case CLUTTER_KEY_PRESS:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:239:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘point’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:352:1: enter_function: entry to ‘clutter_gesture_action_handle_event’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:366:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:369:16: branch_false: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:371:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:374:15: branch_true: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:374:15: call_function: calling ‘gesture_register_point’ from ‘clutter_gesture_action_handle_event’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:374:15: return_function: returning to ‘clutter_gesture_action_handle_event’ from ‘gesture_register_point’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:417:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:443:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:443:7: call_function: calling ‘gesture_update_motion_point’ from ‘clutter_gesture_action_handle_event’
#  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): [#def51]
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:260:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘point’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:352:1: enter_function: entry to ‘clutter_gesture_action_handle_event’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:366:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:369:16: branch_false: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:371:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:374:15: branch_true: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:374:15: call_function: calling ‘gesture_register_point’ from ‘clutter_gesture_action_handle_event’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:374:15: return_function: returning to ‘clutter_gesture_action_handle_event’ from ‘gesture_register_point’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:470:9: call_function: calling ‘gesture_update_release_point’ from ‘clutter_gesture_action_handle_event’
#  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): [#def52]
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:291:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘point’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:352:1: enter_function: entry to ‘clutter_gesture_action_handle_event’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:366:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:369:16: branch_false: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:371:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:374:15: branch_true: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:374:15: call_function: calling ‘gesture_register_point’ from ‘clutter_gesture_action_handle_event’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:374:15: return_function: returning to ‘clutter_gesture_action_handle_event’ from ‘gesture_register_point’
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:417:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:419:15: branch_true: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:419:14: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:427:15: branch_false: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:427:14: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:428:15: branch_true: ...to here
mutter-48.2/redhat-linux-build/../clutter/clutter/clutter-gesture-action.c:428:15: call_function: calling ‘gesture_point_pass_threshold’ from ‘clutter_gesture_action_handle_event’
#  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: GCC_ANALYZER_WARNING (CWE-688): [#def53]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-attribute.c:140:7: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-attribute.c:131:1: enter_function: entry to ‘_cogl_attribute_register_attribute_name’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-attribute.c:140:7: danger: argument 1 (‘name’) NULL where non-null expected
#  138|     name_state->name = NULL;
#  139|     name_state->name_index = name_index;
#  140|->   if (strncmp (name, "cogl_", 5) == 0)
#  141|       {
#  142|         if (!validate_cogl_attribute_name (name,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-bitmap.c:270:3: 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): [#def55]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-bitmap.c:293:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-bitmap.c:285:3: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-bitmap.c:285:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-bitmap.c:293:3: danger: dereference of NULL ‘cogl_bitmap_new_for_data(*buffer.context,  width,  height,  format,  rowstride, 0)’
#  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): [#def56]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-blend-string.c:700:10: warning[-Wanalyzer-deref-before-check]: check of ‘p’ for NULL after already dereferencing it
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-blend-string.c:463:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-blend-string.c:463:10: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-blend-string.c:700:10: danger: pointer ‘p’ is checked for NULL here but it was already dereferenced at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  698|           }
#  699|       }
#  700|->   while (p++);
#  701|   
#  702|   error:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-framebuffer.c:1058:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-framebuffer.c:1386:1: enter_function: entry to ‘cogl_framebuffer_blit’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-framebuffer.c:1400:22: call_function: calling ‘cogl_framebuffer_get_context’ from ‘cogl_framebuffer_blit’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-framebuffer.c:1400:22: return_function: returning to ‘cogl_framebuffer_blit’ from ‘cogl_framebuffer_get_context’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-framebuffer.c:1404:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-framebuffer.c:1413:9: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-framebuffer.c:1430:3: call_function: calling ‘cogl_context_flush_framebuffer_state’ from ‘cogl_framebuffer_blit’
# 1056|                                         CoglFramebufferState  state)
# 1057|   {
# 1058|->   CoglDriverClass *driver_klass = COGL_DRIVER_GET_CLASS (ctx->driver);
# 1059|   
# 1060|     if (driver_klass->flush_framebuffer_state)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:573:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head0’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:556:24: branch_true: following ‘true’ branch (when ‘node1’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:560:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:560:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:563:14: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:564:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:564:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:569:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:573:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:573:7: danger: dereference of NULL ‘head0’
#  571|       }
#  572|   
#  573|->   if (head0->data != head1->data)
#  574|       return FALSE;
#  575|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:573:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head1’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:540:24: branch_true: following ‘true’ branch (when ‘node0’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:544:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:544:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:547:14: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:548:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:548:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:573:22: danger: dereference of NULL ‘head1’
#  571|       }
#  572|   
#  573|->   if (head0->data != head1->data)
#  574|       return FALSE;
#  575|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:583:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head1’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:540:24: branch_true: following ‘true’ branch (when ‘node0’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:544:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:544:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:547:14: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:548:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:548:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:556:24: branch_true: following ‘true’ branch (when ‘node1’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:560:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:560:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:563:14: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:564:7: release_memory: ‘head1’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:564:7: release_memory: ‘head1’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:569:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:573:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:573:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:578:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:579:3: release_memory: ‘head1’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:581:10: branch_true: following ‘true’ branch (when ‘count != 0’)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:583:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-matrix-stack.c:583:26: danger: 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): [#def61]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:607:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head0’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:586:24: branch_false: following ‘false’ branch (when ‘node0’ is NULL)...
 branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:594:24: branch_false: following ‘false’ branch (when ‘node1’ is NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:607:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:607:3: danger: dereference of NULL ‘head0’
#  605|     common_ancestor0 = head0;
#  606|     common_ancestor1 = head1;
#  607|->   head0 = head0->next;
#  608|     head1 = head1->next;
#  609|     count = MIN (len0, len1) - 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:608:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head1’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:586:24: branch_true: following ‘true’ branch (when ‘node0’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:588:22: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:589:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:589:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:594:24: branch_false: following ‘false’ branch (when ‘node1’ is NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:607:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:608:3: danger: dereference of NULL ‘head1’
#  606|     common_ancestor1 = head1;
#  607|     head0 = head0->next;
#  608|->   head1 = head1->next;
#  609|     count = MIN (len0, len1) - 1;
#  610|     while (count--)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:612:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head1’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:586:24: branch_true: following ‘true’ branch (when ‘node0’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:588:22: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:589:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:589:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:586:24: branch_true: following ‘true’ branch (when ‘node0’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:588:22: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:586:24: branch_true: following ‘true’ branch (when ‘node0’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:588:22: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:594:24: branch_true: following ‘true’ branch (when ‘node1’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:596:22: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:597:7: release_memory: ‘head1’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:597:7: release_memory: ‘head1’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:594:24: branch_false: following ‘false’ branch (when ‘node1’ is NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:607:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:608:3: release_memory: ‘head1’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:610:10: branch_true: following ‘true’ branch (when ‘count != 0’)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:612:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-layer.c:612:26: danger: dereference of NULL ‘head1’
#  610|     while (count--)
#  611|       {
#  612|->       if (head0->data != head1->data)
#  613|           break;
#  614|         common_ancestor0 = head0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1439:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head0’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1418:27: branch_false: following ‘false’ branch (when ‘node0’ is NULL)...
 branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1426:27: branch_false: following ‘false’ branch (when ‘node1’ is NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1439:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1439:3: danger: 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: GCC_ANALYZER_WARNING (CWE-476): [#def65]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1440:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head1’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1418:27: branch_true: following ‘true’ branch (when ‘node0’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1420:22: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1421:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1421:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1426:27: branch_false: following ‘false’ branch (when ‘node1’ is NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1439:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1440:3: danger: 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): [#def66]
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1444:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘head1’
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1418:27: branch_true: following ‘true’ branch (when ‘node0’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1420:22: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1421:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1421:7: release_memory: ‘head0’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1418:27: branch_true: following ‘true’ branch (when ‘node0’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1420:22: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1418:27: branch_true: following ‘true’ branch (when ‘node0’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1420:22: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1426:27: branch_true: following ‘true’ branch (when ‘node1’ is non-NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1428:22: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1429:7: release_memory: ‘head1’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1429:7: release_memory: ‘head1’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1426:27: branch_false: following ‘false’ branch (when ‘node1’ is NULL)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1439:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1440:3: release_memory: ‘head1’ is NULL
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1442:10: branch_true: following ‘true’ branch (when ‘count != 0’)...
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1444:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/cogl-pipeline-state.c:1444:26: danger: dereference of NULL ‘head1’
# 1442|     while (count--)
# 1443|       {
# 1444|->       if (head0->data != head1->data)
# 1445|           break;
# 1446|         common_ancestor0 = head0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:427:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘shader_state’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:985:1: enter_function: entry to ‘_cogl_pipeline_fragend_glsl_end’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:988:50: call_function: calling ‘get_shader_state’ from ‘_cogl_pipeline_fragend_glsl_end’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:988:50: return_function: returning to ‘_cogl_pipeline_fragend_glsl_end’ from ‘get_shader_state’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:991:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1010:12: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1010:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1015:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1020:11: call_function: calling ‘ensure_layer_generated’ from ‘_cogl_pipeline_fragend_glsl_end’
#  425|     CoglPipelineSnippetData snippet_data;
#  426|   
#  427|->   if (shader_state->unit_state[unit_index].sampled)
#  428|       return;
#  429|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:610:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:985:1: enter_function: entry to ‘_cogl_pipeline_fragend_glsl_end’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:988:50: call_function: calling ‘get_shader_state’ from ‘_cogl_pipeline_fragend_glsl_end’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:988:50: return_function: returning to ‘_cogl_pipeline_fragend_glsl_end’ from ‘get_shader_state’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:991:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1010:12: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1010:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1015:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1020:11: call_function: calling ‘ensure_layer_generated’ from ‘_cogl_pipeline_fragend_glsl_end’
#  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): [#def69]
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:672:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:985:1: enter_function: entry to ‘_cogl_pipeline_fragend_glsl_end’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:988:50: call_function: calling ‘get_shader_state’ from ‘_cogl_pipeline_fragend_glsl_end’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:988:50: return_function: returning to ‘_cogl_pipeline_fragend_glsl_end’ from ‘get_shader_state’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:991:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1010:12: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1010:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1015:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1020:11: call_function: calling ‘ensure_layer_generated’ from ‘_cogl_pipeline_fragend_glsl_end’
#  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): [#def70]
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:799:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:985:1: enter_function: entry to ‘_cogl_pipeline_fragend_glsl_end’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:988:50: call_function: calling ‘get_shader_state’ from ‘_cogl_pipeline_fragend_glsl_end’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:988:50: return_function: returning to ‘_cogl_pipeline_fragend_glsl_end’ from ‘get_shader_state’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:991:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1010:12: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1010:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1015:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:1020:11: call_function: calling ‘ensure_layer_generated’ from ‘_cogl_pipeline_fragend_glsl_end’
#  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): [#def71]
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:991:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:985:1: enter_function: entry to ‘_cogl_pipeline_fragend_glsl_end’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:988:50: call_function: calling ‘get_shader_state’ from ‘_cogl_pipeline_fragend_glsl_end’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:988:50: return_function: returning to ‘_cogl_pipeline_fragend_glsl_end’ from ‘get_shader_state’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c:991:7: danger: dereference of NULL ‘get_shader_state(pipeline)’
#  989|     CoglContext *ctx = pipeline->context;
#  990|   
#  991|->   if (shader_state->source)
#  992|       {
#  993|         const char *source_strings[2];

Error: GCC_ANALYZER_WARNING (CWE-465): [#def72]
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:674:10: warning[-Wanalyzer-deref-before-check]: check of ‘pipeline’ for NULL after already dereferencing it
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:615:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:620:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:674:10: danger: pointer ‘pipeline’ is checked for NULL here but it was already dereferenced at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  672|       }
#  673|   
#  674|->   while (pipeline && data.n_differences > 0)
#  675|       {
#  676|         if (pipeline->differences & COGL_PIPELINE_STATE_UNIFORMS)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1172:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1141:1: enter_function: entry to ‘_cogl_pipeline_progend_glsl_pre_paint’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1155:19: call_function: calling ‘get_program_state’ from ‘_cogl_pipeline_progend_glsl_pre_paint’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1155:19: return_function: returning to ‘_cogl_pipeline_progend_glsl_pre_paint’ from ‘get_program_state’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1163:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1166:16: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1169:5: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1172:45: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1172:45: danger: dereference of NULL ‘get_program_state(pipeline)’
# 1170|                                              projection_entry,
# 1171|                                              (needs_flip &&
# 1172|->                                             program_state->flip_uniform ==
# 1173|                                               -1));
# 1174|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1185:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1141:1: enter_function: entry to ‘_cogl_pipeline_progend_glsl_pre_paint’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1155:19: call_function: calling ‘get_program_state’ from ‘_cogl_pipeline_progend_glsl_pre_paint’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1155:19: return_function: returning to ‘_cogl_pipeline_progend_glsl_pre_paint’ from ‘get_program_state’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1163:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1166:16: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1169:5: branch_false: following ‘false’ branch...
 branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1181:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1185:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1185:11: danger: dereference of NULL ‘get_program_state(pipeline)’
# 1183|         float v[16];
# 1184|   
# 1185|->       if (program_state->mvp_uniform != -1)
# 1186|           need_modelview = need_projection = TRUE;
# 1187|         else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1259:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1141:1: enter_function: entry to ‘_cogl_pipeline_progend_glsl_pre_paint’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1155:19: call_function: calling ‘get_program_state’ from ‘_cogl_pipeline_progend_glsl_pre_paint’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1155:19: return_function: returning to ‘_cogl_pipeline_progend_glsl_pre_paint’ from ‘get_program_state’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1163:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1166:16: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1169:5: branch_false: following ‘false’ branch...
 branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1181:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1259:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-progend-glsl.c:1259:7: danger: dereference of NULL ‘get_program_state(pipeline)’
# 1257|       }
# 1258|   
# 1259|->   if (program_state->flip_uniform != -1
# 1260|         && program_state->flushed_flip_state != needs_flip)
# 1261|       {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c:542:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c:531:1: enter_function: entry to ‘_cogl_pipeline_vertend_glsl_add_layer’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c:540:18: call_function: calling ‘get_shader_state’ from ‘_cogl_pipeline_vertend_glsl_add_layer’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c:540:18: return_function: returning to ‘_cogl_pipeline_vertend_glsl_add_layer’ from ‘get_shader_state’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c:542:7: danger: dereference of NULL ‘get_shader_state(pipeline)’
#  540|     shader_state = get_shader_state (pipeline);
#  541|   
#  542|->   if (shader_state->source == NULL)
#  543|       return TRUE;
#  544|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c:610:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c:602:1: enter_function: entry to ‘_cogl_pipeline_vertend_glsl_end’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c:608:18: call_function: calling ‘get_shader_state’ from ‘_cogl_pipeline_vertend_glsl_end’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c:608:18: return_function: returning to ‘_cogl_pipeline_vertend_glsl_end’ from ‘get_shader_state’
mutter-48.2/redhat-linux-build/../cogl/cogl/driver/gl/cogl-pipeline-vertend-glsl.c:610:7: danger: dereference of NULL ‘get_shader_state(pipeline)’
#  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-457): [#def78]
mutter-48.2/redhat-linux-build/../mtk/mtk/mtk-region.h:139:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘r1’
mutter-48.2/redhat-linux-build/../src/tests/mtk/region-tests.c:41:25: call_function: inlined call to ‘glib_autoptr_cleanup_MtkRegion’ from ‘test_translate’
#  137|                                                         graphene_matrix_t *transform);
#  138|   
#  139|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (MtkRegion, mtk_region_unref)
#  140|   
#  141|   /**

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:308:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:267:1: enter_function: entry to ‘meta_color_device_dispose’
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:297:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:297:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:300:26: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:300:26: release_memory: ‘error’ is NULL
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:302:19: call_function: calling ‘find_device_sync’ from ‘meta_color_device_dispose’
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:302:19: return_function: returning to ‘meta_color_device_dispose’ from ‘find_device_sync’
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:305:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:306:12: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:306:12: release_memory: ‘error’ is NULL
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:305:11: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:308:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:308:11: release_memory: ‘error’ is NULL
mutter-48.2/redhat-linux-build/../src/backends/meta-color-device.c:308:11: danger: dereference of NULL ‘error’
#  306|             !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
#  307|           {
#  308|->           g_warning ("Failed to find colord device %s: %s",
#  309|                        cd_device_id, error->message);
#  310|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:137:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:110:1: enter_function: entry to ‘meta_color_profile_finalize’
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:120:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:124:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:125:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:127:30: release_memory: ‘error’ is NULL
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:129:24: call_function: calling ‘find_profile_sync’ from ‘meta_color_profile_finalize’
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:129:24: return_function: returning to ‘meta_color_profile_finalize’ from ‘find_profile_sync’
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:132:14: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:133:16: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:133:16: release_memory: ‘error’ is NULL
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:132:15: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:137:15: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:137:15: release_memory: ‘error’ is NULL
mutter-48.2/redhat-linux-build/../src/backends/meta-color-profile.c:137:15: danger: dereference of NULL ‘error’
#  135|                                   CD_CLIENT_ERROR_NOT_FOUND))
#  136|               {
#  137|->               g_warning ("Failed to find colord profile %s: %s",
#  138|                            color_profile->cd_profile_id,
#  139|                            error->message);

Error: GCC_ANALYZER_WARNING (CWE-686): [#def81]
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:321:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘MetaDbusSessionManager *’ {{aka ‘struct _MetaDbusSessionManager *’}} for variadic argument 1 of ‘var_args’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:330:1: enter_function: entry to ‘meta_dbus_session_manager_create_session’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:349:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:356:15: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:365:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:367:14: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:374:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:376:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:377:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:378:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:380:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
#  319|   
#  320|     ptype = G_PARAM_SPEC_VALUE_TYPE (pspec);
#  321|->   G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error);
#  322|     g_assert (!error);
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def82]
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:321:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘char *’ for variadic argument 1 of ‘var_args’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:330:1: enter_function: entry to ‘meta_dbus_session_manager_create_session’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:349:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:356:15: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:365:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:367:14: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:374:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:376:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:377:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:378:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:380:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: return_function: returning to ‘meta_dbus_session_manager_create_session’ from ‘append_property’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:390:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:390:3: return_function: returning to ‘meta_dbus_session_manager_create_session’ from ‘append_property’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:393:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
#  319|   
#  320|     ptype = G_PARAM_SPEC_VALUE_TYPE (pspec);
#  321|->   G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error);
#  322|     g_assert (!error);
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def83]
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:321:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘const char *’ for variadic argument 1 of ‘var_args’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:330:1: enter_function: entry to ‘meta_dbus_session_manager_create_session’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:349:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:356:15: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:365:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:367:14: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:374:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:376:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:377:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:378:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:380:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: return_function: returning to ‘meta_dbus_session_manager_create_session’ from ‘append_property’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:390:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
#  319|   
#  320|     ptype = G_PARAM_SPEC_VALUE_TYPE (pspec);
#  321|->   G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error);
#  322|     g_assert (!error);
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def84]
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:321:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘MetaDbusSessionManager *’ {{aka ‘struct _MetaDbusSessionManager *’}} for variadic argument 1 of ‘var_args’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:330:1: enter_function: entry to ‘meta_dbus_session_manager_create_session’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:349:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:356:15: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:365:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:367:14: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:374:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:376:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:377:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:378:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:380:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
#  319|   
#  320|     ptype = G_PARAM_SPEC_VALUE_TYPE (pspec);
#  321|->   G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error);
#  322|     g_assert (!error);
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def85]
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:321:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘char *’ for variadic argument 1 of ‘var_args’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:330:1: enter_function: entry to ‘meta_dbus_session_manager_create_session’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:349:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:356:15: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:365:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:367:14: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:374:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:376:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:377:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:378:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:380:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: return_function: returning to ‘meta_dbus_session_manager_create_session’ from ‘append_property’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:390:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:390:3: return_function: returning to ‘meta_dbus_session_manager_create_session’ from ‘append_property’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:393:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
#  319|   
#  320|     ptype = G_PARAM_SPEC_VALUE_TYPE (pspec);
#  321|->   G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error);
#  322|     g_assert (!error);
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def86]
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:321:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘const char *’ for variadic argument 1 of ‘var_args’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:330:1: enter_function: entry to ‘meta_dbus_session_manager_create_session’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:349:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:356:15: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:365:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:367:14: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:374:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:376:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:377:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:378:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:380:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: return_function: returning to ‘meta_dbus_session_manager_create_session’ from ‘append_property’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:390:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
#  319|   
#  320|     ptype = G_PARAM_SPEC_VALUE_TYPE (pspec);
#  321|->   G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error);
#  322|     g_assert (!error);
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def87]
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:321: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’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:330:1: enter_function: entry to ‘meta_dbus_session_manager_create_session’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:349:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:356:15: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:365:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:367:14: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:374:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:376:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:377:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:378:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:380:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
#  319|   
#  320|     ptype = G_PARAM_SPEC_VALUE_TYPE (pspec);
#  321|->   G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error);
#  322|     g_assert (!error);
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def88]
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:321:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘char *’ for variadic argument 1 of ‘var_args’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:330:1: enter_function: entry to ‘meta_dbus_session_manager_create_session’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:349:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:356:15: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:365:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:367:14: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:374:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:376:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:377:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:378:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:380:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: return_function: returning to ‘meta_dbus_session_manager_create_session’ from ‘append_property’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:390:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:390:3: return_function: returning to ‘meta_dbus_session_manager_create_session’ from ‘append_property’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:393:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
#  319|   
#  320|     ptype = G_PARAM_SPEC_VALUE_TYPE (pspec);
#  321|->   G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error);
#  322|     g_assert (!error);
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def89]
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:321:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘const char *’ for variadic argument 1 of ‘var_args’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:330:1: enter_function: entry to ‘meta_dbus_session_manager_create_session’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:349:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:356:15: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:365:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:367:14: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:374:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:376:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:377:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:378:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:380:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: return_function: returning to ‘meta_dbus_session_manager_create_session’ from ‘append_property’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:390:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
#  319|   
#  320|     ptype = G_PARAM_SPEC_VALUE_TYPE (pspec);
#  321|->   G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error);
#  322|     g_assert (!error);
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-685): [#def90]
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:321:3: warning[-Wanalyzer-va-list-exhausted]: ‘var_args’ has no more arguments (1 consumed)
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:330:1: enter_function: entry to ‘meta_dbus_session_manager_create_session’
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:349:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:356:15: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:365:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:367:14: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:374:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:376:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:377:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:378:7: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:380:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-dbus-session-manager.c:388:3: call_function: calling ‘append_property’ from ‘meta_dbus_session_manager_create_session’ with 1 variadic argument
#  319|   
#  320|     ptype = G_PARAM_SPEC_VALUE_TYPE (pspec);
#  321|->   G_VALUE_COLLECT_INIT (&value, ptype, var_args, 0, &error);
#  322|     g_assert (!error);
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:277:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:344:1: enter_function: entry to ‘on_keymap_changed’
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:354:7: call_function: calling ‘ensure_eis_keyboard’ from ‘on_keymap_changed’
#  275|     if (!keymap_file)
#  276|       {
#  277|->       g_warning ("Failed to create input capture keymap file: %s",
#  278|                    error->message);
#  279|         return;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:849:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:809:1: enter_function: entry to ‘handle_add_barrier’
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:816:22: release_memory: ‘error’ is NULL
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:820:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:828:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:828:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:836:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:836:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:844:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:845:8: call_function: calling ‘check_barrier’ from ‘handle_add_barrier’
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:845:8: return_function: returning to ‘handle_add_barrier’ from ‘check_barrier’
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:845:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:849:59: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:849:59: release_memory: ‘error’ is NULL
mutter-48.2/redhat-linux-build/../src/backends/meta-input-capture-session.c:849:54: danger: dereference of NULL ‘error’
#  847|         g_dbus_method_invocation_return_error_literal (invocation, G_DBUS_ERROR,
#  848|                                                        G_DBUS_ERROR_ACCESS_DENIED,
#  849|->                                                      error->message);
#  850|         return G_DBUS_METHOD_INVOCATION_HANDLED;
#  851|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1354:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1321:1: enter_function: entry to ‘handle_enable_clipboard’
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1327:22: release_memory: ‘error’ is NULL
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1336:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1344:24: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1347:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1349:23: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1349:23: call_function: calling ‘create_remote_desktop_source’ from ‘handle_enable_clipboard’
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1349:23: return_function: returning to ‘handle_enable_clipboard’ from ‘create_remote_desktop_source’
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1352:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1357:55: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1357:55: release_memory: ‘error’ is NULL
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1354:11: danger: dereference of NULL ‘error’
# 1352|         if (!source_remote)
# 1353|           {
# 1354|->           g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR,
# 1355|                                                    G_DBUS_ERROR_FAILED,
# 1356|                                                    "Invalid mime type list: %s",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def94]
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1531:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1495:1: enter_function: entry to ‘handle_set_selection’
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1501:22: release_memory: ‘error’ is NULL
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1503:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1511:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1521:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1524:30: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1526:23: call_function: calling ‘create_remote_desktop_source’ from ‘handle_set_selection’
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1526:23: return_function: returning to ‘handle_set_selection’ from ‘create_remote_desktop_source’
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1529:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1534:55: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1534:55: release_memory: ‘error’ is NULL
mutter-48.2/redhat-linux-build/../src/backends/meta-remote-desktop-session.c:1531:11: danger: dereference of NULL ‘error’
# 1529|         if (!source_remote)
# 1530|           {
# 1531|->           g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR,
# 1532|                                                    G_DBUS_ERROR_FAILED,
# 1533|                                                    "Invalid format list: %s",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
mutter-48.2/redhat-linux-build/../src/backends/native/meta-device-pool.c:288:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path,  open_flags)’
mutter-48.2/redhat-linux-build/../src/backends/native/meta-device-pool.c:240:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/native/meta-device-pool.c:247:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/native/meta-device-pool.c:247:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/native/meta-device-pool.c:276:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/native/meta-device-pool.c:288:16: acquire_resource: opened here
mutter-48.2/redhat-linux-build/../src/backends/native/meta-device-pool.c:288:16: danger: ‘open(path,  open_flags)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  286|         do
#  287|           {
#  288|->           fd = open (path, open_flags);
#  289|           }
#  290|         while (fd == -1 && errno == EINTR);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def96]
mutter-48.2/redhat-linux-build/../src/backends/native/meta-drm-buffer.c:154:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘depth’
mutter-48.2/redhat-linux-build/../src/backends/native/meta-drm-buffer.c:115:11: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/native/meta-drm-buffer.c:128:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/native/meta-drm-buffer.c:128:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/native/meta-drm-buffer.c:142:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/native/meta-drm-buffer.c:154:11: danger: use of uninitialized value ‘depth’ here
#  152|           }
#  153|   
#  154|->       if (drmModeAddFB (fd,
#  155|                           fb_args->width,
#  156|                           fb_args->height,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
mutter-48.2/redhat-linux-build/../src/backends/native/meta-kms-impl-device.c:612:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
mutter-48.2/redhat-linux-build/../src/backends/native/meta-kms-impl-device.c:2393:1: enter_function: entry to ‘meta_kms_impl_device_init_mode_setting’
mutter-48.2/redhat-linux-build/../src/backends/native/meta-kms-impl-device.c:2404:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/native/meta-kms-impl-device.c:2412:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/native/meta-kms-impl-device.c:2414:3: call_function: calling ‘init_crtcs’ from ‘meta_kms_impl_device_init_mode_setting’
#  610|         if (!drm_crtc)
#  611|           {
#  612|->           g_warning ("Failed to get CRTC %u info on '%s': %s",
#  613|                        crtc_id, priv->path, error->message);
#  614|             continue;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def98]
mutter-48.2/redhat-linux-build/../src/backends/native/meta-pointer-constraint-native.c:568:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘border’
mutter-48.2/redhat-linux-build/../src/backends/native/meta-pointer-constraint-native.c:596:1: enter_function: entry to ‘meta_pointer_constraint_impl_native_ensure_constrained’
mutter-48.2/redhat-linux-build/../src/backends/native/meta-pointer-constraint-native.c:618:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/native/meta-pointer-constraint-native.c:628:13: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/native/meta-pointer-constraint-native.c:628:11: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/native/meta-pointer-constraint-native.c:635:17: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/native/meta-pointer-constraint-native.c:652:7: call_function: calling ‘closest_point_behind_border’ from ‘meta_pointer_constraint_impl_native_ensure_constrained’
#  566|                                float      *sy)
#  567|   {
#  568|->   switch (border->blocking_directions)
#  569|       {
#  570|       case META_BORDER_MOTION_DIRECTION_POSITIVE_X:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
mutter-48.2/redhat-linux-build/../src/backends/native/meta-renderer-native.c:669:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../src/backends/native/meta-renderer-native.c:1017:1: enter_function: entry to ‘meta_renderer_native_create_dma_buf’
mutter-48.2/redhat-linux-build/../src/backends/native/meta-renderer-native.c:1029:3: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/native/meta-renderer-native.c:1031:5: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/native/meta-renderer-native.c:1050:12: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/native/meta-renderer-native.c:1058:9: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/native/meta-renderer-native.c:1067:12: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/native/meta-renderer-native.c:1070:27: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/native/meta-renderer-native.c:1078:12: branch_false: following ‘false’ branch (when ‘n_modifiers <= 0’)...
mutter-48.2/redhat-linux-build/../src/backends/native/meta-renderer-native.c:1081:9: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/native/meta-renderer-native.c:1097:11: call_function: calling ‘meta_renderer_native_create_dma_buf_framebuffer’ from ‘meta_renderer_native_create_dma_buf’
#  667|     CoglContext *cogl_context =
#  668|       cogl_context_from_renderer_native (renderer_native);
#  669|->   CoglDisplay *cogl_display = cogl_context->display;
#  670|     CoglRenderer *cogl_renderer = cogl_display->renderer;
#  671|     CoglRendererEGL *cogl_renderer_egl = cogl_renderer->winsys;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def100]
mutter-48.2/redhat-linux-build/../src/backends/x11/cm/meta-backend-x11-cm.c:285:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rules’
mutter-48.2/redhat-linux-build/../src/backends/x11/cm/meta-backend-x11-cm.c:266:15: acquire_memory: this call could return NULL
mutter-48.2/redhat-linux-build/../src/backends/x11/cm/meta-backend-x11-cm.c:285:7: danger: ‘rules’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  283|     /* Sometimes, the property is a file path, and sometimes it's
#  284|        not. Normalize it so it's always a file path. */
#  285|->   if (rules[0] == '/')
#  286|       *rules_p = g_strdup (rules);
#  287|     else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:1477:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stage_x11’
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2125:1: enter_function: entry to ‘meta_seat_x11_translate_event’
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2138:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2143:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2143:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2144:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2143:7: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2147:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2149:6: branch_false: following ‘false’ branch (when ‘xi_event’ is non-NULL)...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2152:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2152:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2152:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2152:7: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2160:9: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2160:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2170:11: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2654:9: call_function: calling ‘translate_coords’ from ‘meta_seat_x11_translate_event’
# 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): [#def102]
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2267:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stage_x11’
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2125:1: enter_function: entry to ‘meta_seat_x11_translate_event’
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2138:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2143:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2143:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2144:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2143:7: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2147:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2149:6: branch_false: following ‘false’ branch (when ‘xi_event’ is non-NULL)...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2152:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2152:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2152:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2152:7: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2160:9: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2160:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2170:11: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2214:12: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2218:22: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2223:17: call_function: calling ‘translate_state’ from ‘meta_seat_x11_translate_event’
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2223:17: return_function: returning to ‘meta_seat_x11_translate_event’ from ‘translate_state’
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2238:15: call_function: calling ‘print_keysym’ from ‘meta_seat_x11_translate_event’
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2238:15: return_function: returning to ‘meta_seat_x11_translate_event’ from ‘print_keysym’
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2239:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2267:9: branch_true: following ‘true’ branch (when ‘keyval != 0’)...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2267:9: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2267:9: danger: dereference of NULL ‘stage_x11’
# 2265|                                          unicode_value);
# 2266|   
# 2267|->         g_debug ("%s: win:0x%x device:%d source:%d, key: %12s (%d)",
# 2268|                    clutter_event_type (event) == CLUTTER_KEY_PRESS
# 2269|                    ? "key press  "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2342:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stage_x11’
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2138:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2143:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2143:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2144:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2143:7: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2147:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2149:6: branch_false: following ‘false’ branch (when ‘xi_event’ is non-NULL)...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2152:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2152:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2152:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2152:7: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2160:9: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2160:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2170:11: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2295:12: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2299:39: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2301:12: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2303:34: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2308:16: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2318:16: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/backends/x11/meta-seat-x11.c:2342:13: danger: dereference of NULL ‘stage_x11’
# 2340|                                                     mode);
# 2341|   
# 2342|->             g_debug ("%s: win:0x%x, device:%d '%s', time:%lu "
# 2343|                        "(button:%d)",
# 2344|                        (xi_event->evtype == XI_ButtonPress)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
mutter-48.2/redhat-linux-build/../src/compositor/meta-window-actor.c:1365:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bounds’
mutter-48.2/redhat-linux-build/../src/compositor/meta-window-actor.c:1344:1: enter_function: entry to ‘meta_window_actor_capture_into’
mutter-48.2/redhat-linux-build/../src/compositor/meta-window-actor.c:1359:11: call_function: calling ‘meta_window_actor_get_image’ from ‘meta_window_actor_capture_into’
mutter-48.2/redhat-linux-build/../src/compositor/meta-window-actor.c:1359:11: return_function: returning to ‘meta_window_actor_capture_into’ from ‘meta_window_actor_get_image’
mutter-48.2/redhat-linux-build/../src/compositor/meta-window-actor.c:1365:19: danger: dereference of NULL ‘bounds’
# 1363|     cr_stride = cairo_image_surface_get_stride (image);
# 1364|   
# 1365|->   if (cr_width == bounds->width && cr_height == bounds->height)
# 1366|       {
# 1367|         memcpy (data, cr_data, cr_height * cr_stride);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:178:19: warning[-Wanalyzer-malloc-leak]: leak of ‘find_session_type(error)’
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:243:1: enter_function: entry to ‘determine_compositor_type’
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:249:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:251:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:249:7: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:252:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:249:7: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:254:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:249:7: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:258:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:258:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:261:18: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:261:18: call_function: calling ‘find_session_type’ from ‘determine_compositor_type’
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:261:18: return_function: returning to ‘determine_compositor_type’ from ‘find_session_type’
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:178:19: danger: ‘find_session_type(error)’ leaks here; was allocated at [(24)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/23)
#  176|   
#  177|     ret = sd_pid_get_session (0, &session_id);
#  178|->   if (ret == 0 && session_id != NULL)
#  179|       {
#  180|         ret = sd_session_get_type (session_id, &session_type);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:210:3: warning[-Wanalyzer-malloc-leak]: leak of ‘find_session_type(error)’
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:243:1: enter_function: entry to ‘determine_compositor_type’
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:249:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:251:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:249:7: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:252:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:249:7: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:254:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:249:7: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:258:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:258:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:261:18: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:261:18: call_function: calling ‘find_session_type’ from ‘determine_compositor_type’
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:261:18: return_function: returning to ‘determine_compositor_type’ from ‘find_session_type’
mutter-48.2/redhat-linux-build/../src/core/meta-context-main.c:210:3: danger: ‘find_session_type(error)’ leaks here; was allocated at [(16)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/15)
#  208|           }
#  209|       }
#  210|->   g_strfreev (sessions);
#  211|   
#  212|     session_type_env = g_getenv ("XDG_SESSION_TYPE");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def107]
mutter-48.2/redhat-linux-build/../src/core/startup-notification.c:630:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
mutter-48.2/redhat-linux-build/../src/core/startup-notification.c:618:1: enter_function: entry to ‘meta_startup_notification_lookup_sequence’
mutter-48.2/redhat-linux-build/../src/core/startup-notification.c:625:35: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
mutter-48.2/redhat-linux-build/../src/core/startup-notification.c:627:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/core/startup-notification.c:628:16: call_function: calling ‘meta_startup_sequence_get_id’ from ‘meta_startup_notification_lookup_sequence’
mutter-48.2/redhat-linux-build/../src/core/startup-notification.c:628:16: return_function: returning to ‘meta_startup_notification_lookup_sequence’ from ‘meta_startup_sequence_get_id’
mutter-48.2/redhat-linux-build/../src/core/startup-notification.c:630:11: danger: argument 1 (‘meta_startup_sequence_get_id(seq)’) NULL where non-null expected
#  628|         seq_id = meta_startup_sequence_get_id (seq);
#  629|   
#  630|->       if (g_str_equal (seq_id, id))
#  631|           return l->data;
#  632|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def108]
mutter-48.2/redhat-linux-build/../src/core/workspace.c:1231:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../src/core/workspace.c:1222:1: enter_function: entry to ‘meta_workspace_get_onmonitor_region’
mutter-48.2/redhat-linux-build/../src/core/workspace.c:1227:3: call_function: calling ‘ensure_work_areas_validated’ from ‘meta_workspace_get_onmonitor_region’
mutter-48.2/redhat-linux-build/../src/core/workspace.c:1227:3: return_function: returning to ‘meta_workspace_get_onmonitor_region’ from ‘ensure_work_areas_validated’
mutter-48.2/redhat-linux-build/../src/core/workspace.c:1229:10: call_function: inlined call to ‘meta_workspace_get_logical_monitor_data’ from ‘meta_workspace_get_onmonitor_region’
mutter-48.2/redhat-linux-build/../src/core/workspace.c:1231:10: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/core/workspace.c:1231:10: danger: dereference of NULL ‘<unknown>’
# 1229|     data = meta_workspace_get_logical_monitor_data (workspace, logical_monitor);
# 1230|   
# 1231|->   return data->logical_monitor_region;
# 1232|   }
# 1233|   

Error: GCC_ANALYZER_WARNING: [#def109]
mutter-48.2/redhat-linux-build/../src/tests/anonymous-file.c:63:18: warning[-Wanalyzer-fd-use-without-check]: ‘write’ on possibly invalid file descriptor ‘fd’
mutter-48.2/redhat-linux-build/../src/tests/anonymous-file.c:103:1: enter_function: entry to ‘test_open_write_read’
mutter-48.2/redhat-linux-build/../src/tests/anonymous-file.c:107:8: acquire_resource: opened here
mutter-48.2/redhat-linux-build/../src/tests/anonymous-file.c:108:3: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/tests/anonymous-file.c:108:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/tests/anonymous-file.c:110:8: call_function: calling ‘test_write_read’ from ‘test_open_write_read’
#   61|   
#   62|     string_size = strlen (string) + 1;
#   63|->   written_size = write (fd, string, string_size);
#   64|     if (written_size != string_size)
#   65|       return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def110]
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:148:33: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:111:1: enter_function: entry to ‘main’
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:120:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:126:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:129:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:134:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:134:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:136:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:138:19: branch_true: following ‘true’ branch (when ‘i != 11’)...
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:143:33: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:144:17: call_function: calling ‘get_unit_name_description’ from ‘main’
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:144:17: return_function: returning to ‘main’ from ‘get_unit_name_description’
mutter-48.2/redhat-linux-build/../src/tests/clutter/interactive/test-main.c:148:33: danger: argument 1 (‘get_unit_name_description(test_unit_names[i], (long int)(70 - strlen(<unknown>)))’) NULL where non-null expected
#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: GCC_ANALYZER_WARNING (CWE-404): [#def111]
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:47:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:40:3: acquire_resource: ‘va_start’ called here
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:47:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   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): [#def112]
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:64:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:33:1: enter_function: entry to ‘verify_bits’
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:47:3: acquire_resource: ‘va_copy’ called here
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:57:3: call_function: calling ‘_cogl_bitmask_popcount’ from ‘verify_bits’
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:57:3: return_function: returning to ‘verify_bits’ from ‘_cogl_bitmask_popcount’
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:57:3: branch_true: following ‘true’ branch...
 branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:59:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:64:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:64:7: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
#   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): [#def113]
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:67:13: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (2 consumed)
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:87:1: enter_function: entry to ‘check_bitmask_api’
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:95:24: branch_true: following ‘true’ branch (when ‘dummy_bit <= 255’)...
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:97:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:100:10: branch_false: following ‘false’ branch (when ‘dummy_bit == -1’)...
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:103:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:103:7: call_function: calling ‘verify_bits’ from ‘check_bitmask_api’ with 2 variadic arguments
#   65|   
#   66|         for (j = 0; j < data.n_bits; j++)
#   67|->         if (va_arg (ap, int) < i)
#   68|             upto_popcount++;
#   69|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def114]
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:74:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:87:1: enter_function: entry to ‘check_bitmask_api’
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:95:24: branch_true: following ‘true’ branch (when ‘dummy_bit <= 255’)...
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:97:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:100:10: branch_false: following ‘false’ branch (when ‘dummy_bit == -1’)...
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:103:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/tests/cogl/unit/test-bitmask.c:103:7: call_function: calling ‘verify_bits’ from ‘check_bitmask_api’
#   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-476): [#def115]
mutter-48.2/redhat-linux-build/../src/tests/meta-monitor-test-utils.c:263:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../src/tests/meta-monitor-test-utils.c:249:3: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/tests/meta-monitor-test-utils.c:249:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/tests/meta-monitor-test-utils.c:263:3: danger: dereference of NULL ‘logical_monitor_from_layout(monitor_manager, &*test_logical_monitor.layout)’
#  261|                      ==,
#  262|                      test_logical_monitor->layout.height);
#  263|->   g_assert_cmpfloat (logical_monitor->scale,
#  264|                        ==,
#  265|                        test_logical_monitor->scale);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5363:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘initial_config’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5224:1: enter_function: entry to ‘meta_test_monitor_orientation_changes’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5314:34: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5315:34: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5314:34: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5315:34: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5314:34: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5315:34: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5330:3: call_function: calling ‘g_set_object’ from ‘meta_test_monitor_orientation_changes’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5330:3: return_function: returning to ‘meta_test_monitor_orientation_changes’ from ‘g_set_object’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5332:3: call_function: calling ‘g_set_object’ from ‘meta_test_monitor_orientation_changes’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5332:3: return_function: returning to ‘meta_test_monitor_orientation_changes’ from ‘g_set_object’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5343:37: branch_true: following ‘true’ branch (when ‘i != 0’)...
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5348:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5353:7: call_function: calling ‘check_monitor_configuration_per_orientation’ from ‘meta_test_monitor_orientation_changes’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5353:7: return_function: returning to ‘meta_test_monitor_orientation_changes’ from ‘check_monitor_configuration_per_orientation’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5361:7: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5362:7: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5363:7: danger: dereference of NULL ‘initial_config’
# 5361|         g_assert_true (previous == previous_config);
# 5362|         g_assert_true (current != initial_config);
# 5363|->       g_assert_true (meta_monitors_config_key_equal (current->key,
# 5364|                                                        initial_config->key));
# 5365|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5564:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘initial_config’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5424:1: enter_function: entry to ‘meta_test_monitor_orientation_changes_for_transformed_panel’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5515:34: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5516:34: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5515:34: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5516:34: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5515:34: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5516:34: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5531:3: call_function: calling ‘g_set_object’ from ‘meta_test_monitor_orientation_changes_for_transformed_panel’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5531:3: return_function: returning to ‘meta_test_monitor_orientation_changes_for_transformed_panel’ from ‘g_set_object’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5533:3: call_function: calling ‘g_set_object’ from ‘meta_test_monitor_orientation_changes_for_transformed_panel’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5533:3: return_function: returning to ‘meta_test_monitor_orientation_changes_for_transformed_panel’ from ‘g_set_object’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5544:37: branch_true: following ‘true’ branch (when ‘i != 0’)...
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5549:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5554:7: call_function: calling ‘check_monitor_configuration_per_orientation’ from ‘meta_test_monitor_orientation_changes_for_transformed_panel’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5554:7: return_function: returning to ‘meta_test_monitor_orientation_changes_for_transformed_panel’ from ‘check_monitor_configuration_per_orientation’
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5562:7: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5563:7: release_memory: ‘initial_config’ is NULL
mutter-48.2/redhat-linux-build/../src/tests/monitor-unit-tests.c:5564:7: danger: dereference of NULL ‘initial_config’
# 5562|         g_assert_true (previous == previous_config);
# 5563|         g_assert_true (current != initial_config);
# 5564|->       g_assert_true (meta_monitors_config_key_equal (current->key,
# 5565|                                                        initial_config->key));
# 5566|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
mutter-48.2/redhat-linux-build/../src/tests/wayland-test-clients/surface-scale-client.c:42:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../src/tests/wayland-test-clients/surface-scale-client.c:132:1: enter_function: entry to ‘main’
mutter-48.2/redhat-linux-build/../src/tests/wayland-test-clients/surface-scale-client.c:167:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/tests/wayland-test-clients/surface-scale-client.c:170:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/tests/wayland-test-clients/surface-scale-client.c:177:11: call_function: calling ‘check_scales’ from ‘main’
#   40|   
#   41|     g_assert_cmpfloat_with_epsilon (cursor_scale, scale, FLT_EPSILON);
#   42|->   g_assert_cmpint (cursor_surface->preferred_buffer_scale,
#   43|                      ==,
#   44|                      (int32_t) ceilf (scale));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def119]
mutter-48.2/redhat-linux-build/../src/tests/wayland-test-clients/wayland-test-client-utils.h:106:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buffer’
mutter-48.2/redhat-linux-build/../src/tests/wayland-test-clients/wayland-test-client-utils.c:1159:29: call_function: inlined call to ‘glib_autoptr_cleanup_WaylandBuffer’ from ‘wayland_buffer_create’
#  104|   
#  105|   #define WAYLAND_TYPE_BUFFER (wayland_buffer_get_type ())
#  106|-> G_DECLARE_DERIVABLE_TYPE (WaylandBuffer, wayland_buffer,
#  107|                             WAYLAND, BUFFER,
#  108|                             GObject)

Error: GCC_ANALYZER_WARNING (CWE-121): [#def120]
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-buffer.c:332:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-buffer.c:338:1: enter_function: entry to ‘multi_texture_from_shm’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-buffer.c:360:3: call_function: calling ‘get_offset_and_stride’ from ‘multi_texture_from_shm’
#  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): [#def121]
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-buffer.c:800:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  798|   
#  799|     format_info = get_supported_shm_format_info (shm_format);
#  800|->   multi_format = format_info->multi_texture_format;
#  801|     mt_format_info = meta_multi_texture_format_get_info (multi_format);
#  802|     n_planes = mt_format_info->n_planes;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def122]
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-linux-drm-syncobj.c:512:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device_path, 524290)’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-linux-drm-syncobj.c:466:3: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-linux-drm-syncobj.c:468:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-linux-drm-syncobj.c:475:8: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-linux-drm-syncobj.c:475:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-linux-drm-syncobj.c:480:16: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-linux-drm-syncobj.c:486:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-linux-drm-syncobj.c:492:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-linux-drm-syncobj.c:503:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-linux-drm-syncobj.c:512:12: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-linux-drm-syncobj.c:512:12: acquire_resource: opened here
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-linux-drm-syncobj.c:512:12: danger: ‘open(device_path, 524290)’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  510|       }
#  511|   
#  512|->   drm_fd = open (device_path, O_RDWR | O_CLOEXEC);
#  513|     if (drm_fd < 0)
#  514|       {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-surface.c:1728:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-surface.c:1712:1: enter_function: entry to ‘meta_wayland_surface_begin_grab_op’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-surface.c:1720:24: call_function: calling ‘meta_wayland_surface_get_window’ from ‘meta_wayland_surface_begin_grab_op’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-surface.c:1720:24: return_function: returning to ‘meta_wayland_surface_begin_grab_op’ from ‘meta_wayland_surface_get_window’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-surface.c:1722:6: branch_false: following ‘false’ branch (when ‘grab_op != 0’)...
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-surface.c:1732:38: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-surface.c:1728:10: danger: dereference of NULL ‘meta_wayland_surface_get_window(surface)’
# 1726|        constrain it in the same way as it would be if the window was
# 1727|        being moved/resized via a SSD event. */
# 1728|->   return meta_window_begin_grab_op (window,
# 1729|                                       grab_op,
# 1730|                                       device, sequence,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:98:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dragged_surface’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:203:1: enter_function: entry to ‘xdg_toplevel_drag_attach’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:215:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:218:21: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:218:21: call_function: calling ‘surface_from_xdg_toplevel_resource’ from ‘xdg_toplevel_drag_attach’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:218:21: return_function: returning to ‘xdg_toplevel_drag_attach’ from ‘surface_from_xdg_toplevel_resource’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:220:3: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:222:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:222:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:230:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:236:3: release_memory: ‘0’ is NULL
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:245:6: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:248:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-toplevel-drag.c:248:7: call_function: calling ‘add_window_geometry_origin’ from ‘xdg_toplevel_drag_attach’
#   96|     MtkRectangle toplevel_geometry;
#   97|     toplevel_geometry = meta_wayland_xdg_surface_get_window_geometry (
#   98|->     META_WAYLAND_XDG_SURFACE (dragged_surface->role));
#   99|   
#  100|     if (x_offset)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def125]
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:591:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:582:1: enter_function: entry to ‘meta_wayland_transaction_add_placement_op’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:589:11: call_function: calling ‘meta_wayland_transaction_ensure_entry’ from ‘meta_wayland_transaction_add_placement_op’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:589:11: return_function: returning to ‘meta_wayland_transaction_add_placement_op’ from ‘meta_wayland_transaction_ensure_entry’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:591:8: danger: dereference of NULL ‘meta_wayland_transaction_ensure_entry(transaction,  surface)’
#  589|     entry = meta_wayland_transaction_ensure_entry (transaction, surface);
#  590|   
#  591|->   if (!entry->state)
#  592|       entry->state = meta_wayland_surface_state_new ();
#  593|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:608:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:600:1: enter_function: entry to ‘meta_wayland_transaction_add_subsurface_position’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:607:11: call_function: calling ‘meta_wayland_transaction_ensure_entry’ from ‘meta_wayland_transaction_add_subsurface_position’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:607:11: return_function: returning to ‘meta_wayland_transaction_add_subsurface_position’ from ‘meta_wayland_transaction_ensure_entry’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:608:3: danger: dereference of NULL ‘meta_wayland_transaction_ensure_entry(transaction,  surface)’
#  606|   
#  607|     entry = meta_wayland_transaction_ensure_entry (transaction, surface);
#  608|->   entry->x = x;
#  609|     entry->y = y;
#  610|     entry->has_sub_pos = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:624:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:614:1: enter_function: entry to ‘meta_wayland_transaction_add_xdg_popup_reposition’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:622:11: call_function: calling ‘meta_wayland_transaction_ensure_entry’ from ‘meta_wayland_transaction_add_xdg_popup_reposition’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:622:11: return_function: returning to ‘meta_wayland_transaction_add_xdg_popup_reposition’ from ‘meta_wayland_transaction_ensure_entry’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:624:7: danger: dereference of NULL ‘meta_wayland_transaction_ensure_entry(transaction,  surface)’
#  622|     entry = meta_wayland_transaction_ensure_entry (transaction, surface);
#  623|   
#  624|->   if (entry->state)
#  625|       g_clear_pointer (&entry->state->xdg_positioner, g_free);
#  626|     else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:695:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:687:1: enter_function: entry to ‘meta_wayland_transaction_merge_pending_state’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:693:11: call_function: calling ‘meta_wayland_transaction_ensure_entry’ from ‘meta_wayland_transaction_merge_pending_state’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:693:11: return_function: returning to ‘meta_wayland_transaction_merge_pending_state’ from ‘meta_wayland_transaction_ensure_entry’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-transaction.c:695:8: danger: dereference of NULL ‘meta_wayland_transaction_ensure_entry(transaction,  surface)’
#  693|     entry = meta_wayland_transaction_ensure_entry (transaction, surface);
#  694|   
#  695|->   if (!entry->state)
#  696|       {
#  697|         entry->state = pending;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-xdg-shell.c:1769:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-xdg-shell.c:1760:1: enter_function: entry to ‘xdg_surface_get_toplevel’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-xdg-shell.c:1765:33: call_function: calling ‘surface_from_xdg_surface_resource’ from ‘xdg_surface_get_toplevel’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-xdg-shell.c:1765:33: return_function: returning to ‘xdg_surface_get_toplevel’ from ‘surface_from_xdg_surface_resource’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-xdg-shell.c:1769:3: danger: dereference of NULL ‘surface_from_xdg_surface_resource(resource)’
# 1767|       meta_wayland_xdg_surface_get_wm_base_resource (xdg_surface);
# 1768|   
# 1769|->   wl_resource_post_error (xdg_wm_base_resource, XDG_WM_BASE_ERROR_ROLE,
# 1770|                             "wl_surface@%d already has a role assigned",
# 1771|                             wl_resource_get_id (surface->resource));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def130]
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-xdg-shell.c:1786:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-xdg-shell.c:1775:1: enter_function: entry to ‘xdg_surface_get_popup’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-xdg-shell.c:1784:33: call_function: calling ‘surface_from_xdg_surface_resource’ from ‘xdg_surface_get_popup’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-xdg-shell.c:1784:33: return_function: returning to ‘xdg_surface_get_popup’ from ‘surface_from_xdg_surface_resource’
mutter-48.2/redhat-linux-build/../src/wayland/meta-wayland-xdg-shell.c:1786:3: danger: dereference of NULL ‘surface_from_xdg_surface_resource(resource)’
# 1784|     MetaWaylandSurface *surface = surface_from_xdg_surface_resource (resource);
# 1785|   
# 1786|->   wl_resource_post_error (priv->shell_client->resource,
# 1787|                             XDG_WM_BASE_ERROR_ROLE,
# 1788|                             "wl_surface@%d already has a role assigned",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def131]
mutter-48.2/redhat-linux-build/../src/wayland/meta-xwayland.c:324:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor
mutter-48.2/redhat-linux-build/../src/wayland/meta-xwayland.c:1077:1: enter_function: entry to ‘meta_xwayland_init’
mutter-48.2/redhat-linux-build/../src/wayland/meta-xwayland.c:1094:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/wayland/meta-xwayland.c:1108:12: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/wayland/meta-xwayland.c:1108:12: call_function: calling ‘open_display_sockets’ from ‘meta_xwayland_init’
mutter-48.2/redhat-linux-build/../src/wayland/meta-xwayland.c:1108:12: return_function: returning to ‘meta_xwayland_init’ from ‘open_display_sockets’
mutter-48.2/redhat-linux-build/../src/wayland/meta-xwayland.c:1108:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/wayland/meta-xwayland.c:1115:12: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/wayland/meta-xwayland.c:1115:12: call_function: calling ‘open_display_sockets’ from ‘meta_xwayland_init’
#  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): [#def132]
mutter-48.2/redhat-linux-build/../src/x11/meta-x11-display.c:1867:7: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
mutter-48.2/redhat-linux-build/../src/x11/meta-x11-display.c:1853:1: enter_function: entry to ‘get_screen_name’
mutter-48.2/redhat-linux-build/../src/x11/meta-x11-display.c:1867:7: danger: argument 1 (‘<unknown>’) NULL where non-null expected
# 1865|     /* Change display name to specify this screen.
# 1866|      */
# 1867|->   p = strrchr (dname, ':');
# 1868|     if (p)
# 1869|       {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
mutter-48.2/redhat-linux-build/../src/x11/session.c:950:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(full_save_path, "w")’
mutter-48.2/redhat-linux-build/../src/x11/session.c:889:3: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/x11/session.c:901:16: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/x11/session.c:925:13: acquire_resource: opened here
mutter-48.2/redhat-linux-build/../src/x11/session.c:927:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/x11/session.c:950:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/x11/session.c:960:10: branch_true: following ‘true’ branch (when ‘tmp’ is non-NULL)...
mutter-48.2/redhat-linux-build/../src/x11/session.c:965:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/x11/session.c:968:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/x11/session.c:1057:11: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/x11/session.c:1057:11: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/x11/session.c:1057:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/x11/session.c:950:3: danger: ‘fopen(full_save_path, "w")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  948|      */
#  949|   
#  950|->   fprintf (outfile, "<mutter_session id=\"%s\">\n",
#  951|              client_id);
#  952|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
mutter-48.2/redhat-linux-build/../src/x11/session.c:950:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(full_save_path, "w")’
mutter-48.2/redhat-linux-build/../src/x11/session.c:889:3: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/x11/session.c:901:16: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/x11/session.c:925:13: acquire_memory: allocated here
mutter-48.2/redhat-linux-build/../src/x11/session.c:927:6: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/x11/session.c:950:3: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/x11/session.c:960:10: branch_true: following ‘true’ branch (when ‘tmp’ is non-NULL)...
mutter-48.2/redhat-linux-build/../src/x11/session.c:965:7: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/x11/session.c:968:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/x11/session.c:1057:11: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/x11/session.c:1057:11: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/x11/session.c:1057:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/x11/session.c:950:3: danger: ‘fopen(full_save_path, "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  948|      */
#  949|   
#  950|->   fprintf (outfile, "<mutter_session id=\"%s\">\n",
#  951|              client_id);
#  952|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def135]
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:740:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:831:1: enter_function: entry to ‘meta_prop_get_values’
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:843:6: branch_false: following ‘false’ branch (when ‘n_values != 0’)...
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:846:11: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:917:10: branch_true: following ‘true’ branch (when ‘i < n_values’)...
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:923:16: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:923:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:932:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:941:12: call_function: calling ‘async_get_property_finish’ from ‘meta_prop_get_values’
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:941:12: return_function: returning to ‘meta_prop_get_values’ from ‘async_get_property_finish’
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:941:10: branch_true: following ‘true’ branch...
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:943:11: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:917:10: branch_true: following ‘true’ branch (when ‘i < n_values’)...
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:923:16: branch_true: ...to here
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:923:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:932:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:941:12: call_function: calling ‘async_get_property_finish’ from ‘meta_prop_get_values’
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:941:12: return_function: returning to ‘meta_prop_get_values’ from ‘async_get_property_finish’
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:941:10: branch_false: following ‘false’ branch...
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:947:7: branch_false: ...to here
mutter-48.2/redhat-linux-build/../src/x11/xprops.c:1019:16: call_function: calling ‘class_hint_from_results’ from ‘meta_prop_get_values’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  738|     class_hint->res_name = g_strdup ((char *) results->prop);
#  739|   
#  740|->   len_name = strlen (class_hint->res_name);
#  741|     if (len_name == (int) results->n_items)
#  742|       class_hint->res_class = g_strdup ("");

Error: CPPCHECK_WARNING (CWE-457): [#def136]
mutter-48.2/src/backends/native/meta-onscreen-native.c:2240: error[legacyUninitvar]: Uninitialized variable: gbm_format
# 2238|       g_assert_not_reached ();
# 2239|   
# 2240|->   return gbm_format;
# 2241|   }
# 2242|   

Error: CPPCHECK_WARNING (CWE-476): [#def137]
mutter-48.2/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): [#def138]
mutter-48.2/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: CPPCHECK_WARNING (CWE-476): [#def139]
mutter-48.2/src/backends/x11/cm/meta-backend-x11-cm.c:285: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rules
#  283|     /* Sometimes, the property is a file path, and sometimes it's
#  284|        not. Normalize it so it's always a file path. */
#  285|->   if (rules[0] == '/')
#  286|       *rules_p = g_strdup (rules);
#  287|     else

Error: CPPCHECK_WARNING (CWE-457): [#def140]
mutter-48.2/src/core/window.c:4087: error[legacyUninitvar]: Uninitialized variable: unconstrained_rect
# 4085|       g_assert_not_reached ();
# 4086|   
# 4087|->   constrained_rect = unconstrained_rect;
# 4088|     temporary_rect = rect;
# 4089|     /* Do not constrain if it is tied to an ongoing window drag. */

Error: CPPCHECK_WARNING (CWE-909): [#def141]
mutter-48.2/src/core/window.c:4087: error[uninitStructMember]: Uninitialized struct member: unconstrained_rect.height
# 4085|       g_assert_not_reached ();
# 4086|   
# 4087|->   constrained_rect = unconstrained_rect;
# 4088|     temporary_rect = rect;
# 4089|     /* Do not constrain if it is tied to an ongoing window drag. */

Error: CPPCHECK_WARNING (CWE-909): [#def142]
mutter-48.2/src/core/window.c:4087: error[uninitStructMember]: Uninitialized struct member: unconstrained_rect.width
# 4085|       g_assert_not_reached ();
# 4086|   
# 4087|->   constrained_rect = unconstrained_rect;
# 4088|     temporary_rect = rect;
# 4089|     /* Do not constrain if it is tied to an ongoing window drag. */

Error: CPPCHECK_WARNING (CWE-909): [#def143]
mutter-48.2/src/core/window.c:4087: error[uninitStructMember]: Uninitialized struct member: unconstrained_rect.x
# 4085|       g_assert_not_reached ();
# 4086|   
# 4087|->   constrained_rect = unconstrained_rect;
# 4088|     temporary_rect = rect;
# 4089|     /* Do not constrain if it is tied to an ongoing window drag. */

Error: CPPCHECK_WARNING (CWE-909): [#def144]
mutter-48.2/src/core/window.c:4087: error[uninitStructMember]: Uninitialized struct member: unconstrained_rect.y
# 4085|       g_assert_not_reached ();
# 4086|   
# 4087|->   constrained_rect = unconstrained_rect;
# 4088|     temporary_rect = rect;
# 4089|     /* Do not constrain if it is tied to an ongoing window drag. */

Error: CPPCHECK_WARNING (CWE-664): [#def145]
mutter-48.2/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: CPPCHECK_WARNING (CWE-664): [#def146]
mutter-48.2/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: CPPCHECK_WARNING (CWE-664): [#def147]
mutter-48.2/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: CPPCHECK_WARNING (CWE-664): [#def148]
mutter-48.2/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): [#def149]
mutter-48.2/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: CPPCHECK_WARNING (CWE-786): [#def150]
mutter-48.2/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): [#def151]
mutter-48.2/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): [#def152]
mutter-48.2/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-457): [#def153]
mutter-48.2/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): [#def154]
mutter-48.2/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): [#def155]
mutter-48.2/src/wayland/meta-wayland-presentation-time.c:456: error[uninitvar]: Uninitialized variables: feedback.link, feedback.resource, feedback.surface
#  454|             wl_list_for_each_safe (feedback, next, feedbacks, link)
#  455|               {
#  456|->               meta_wayland_presentation_feedback_present (feedback,
#  457|                                                             frame_info,
#  458|                                                             output);

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-147.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namemutter-48.2-1.fc43
store-results-to/tmp/tmpsqlim0un/mutter-48.2-1.fc43.tar.xz
time-created2025-04-25 14:53:05
time-finished2025-04-25 15:15:38
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpsqlim0un/mutter-48.2-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpsqlim0un/mutter-48.2-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9