Details
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
For Gerrit Dashboard: QBS-1306 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
220795,1 | WIP: Quatsch. | 1.11 | qbs/qbs | Status: ABANDONED | -2 | 0 |
220796,3 | RunEnvironment: Add safety check for API mis-use | 1.11 | qbs/qbs | Status: MERGED | +2 | 0 |