Skip to content
  • Diego Escalante Urrelo's avatar
    meson: fix a crash when building · dc6d16a2
    Diego Escalante Urrelo authored and Christian Hergert's avatar Christian Hergert committed
    When starting a build stage `on_build_stage_query()` would crash when
    the `IdeSubprocessLauncher` had a command line of more than 2 items and
    none of those were ninja or ninja-build.
    
    Found the crash when using a jhbuild pipeline, since its argv is
    `jhbuild run ninja`, the first loop got stuck on comparing `jhbuild`
    against ninja, ninja-build, and then infinity.
    
    The above because `g_strv_contains()` expects NULL terminated arrays,
    otherwise it will start accessing random memory and likely crash.
    dc6d16a2