Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1306

Getting the product's run environment via qbs API crashes if product is disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 1.11.0
    • 1.11.0
    • General
    • None
    • 9379e0eae0f05614313083c8b46b8dae6da8b230

    Description

      On master branch when testing the Xcode generator, I was able to trigger a crash when attempting to retrieve the run environment of a disabled product.

      The crash occurs in artifactsMap() in src/lib/corelib/buildgraph/artifactsscriptvalue.cpp: the body of the function contains the statement 

      return product->buildData->artifactsByFileTag();

      which results in a null pointer dereference because product->buildData is null in this case.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes