Skip to content

LicenseInfoResolver.effectiveLicense() crashes given some large SPDX expression and non-empty license choices #7321

Open
@fviernau

Description

@fviernau

Reproduce:

  1. Make a scan for an analyzer result contain Qt as dependency:
    vcsUrl: https://code.qt.io/qt/qt5.git
    vcsRevision: b9fd0a20a60b82cd91fdc86cb54d0eb7adf29eae
    
  2. Set-up a license choice which applies to that dependency
  3. Run the evaluator using the rules from ort-config repo. (I've used -Xmx16G)
  4. Observe that CPU load goes to max., it seems to hang, after minutes CLI will just exit without a success.

Note: The issue seems to be in the SpdxExpression class hierarchy. In particular, related to validChoices() and DNF computation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    spdx-utilsAbout the SPDX utility library

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions