Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive SSPL license detection #2975

Open
pombredanne opened this issue May 23, 2022 · 2 comments
Open

False positive SSPL license detection #2975

pombredanne opened this issue May 23, 2022 · 2 comments

Comments

@pombredanne
Copy link
Member

#define PEX_ROOT_CMPLX_SSPL_REG(if) ((MV_PEX_IF_REGS_BASE(if)) + 0x1A0C) gets detected incorrectly this way:

licenses:
    -   key: mongodb-sspl-1.0
        score: '90.0'
        name: Server Side Public License (SSPL) 1.0
        short_name: SSPL 1.0
        category: Source-available
        is_exception: no
        is_unknown: no
        owner: MongoDB
        homepage_url: https://www.mongodb.com/licensing/server-side-public-license
        text_url:
        reference_url: https://scancode-licensedb.aboutcode.org/mongodb-sspl-1.0
        scancode_text_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/mongodb-sspl-1.0.LICENSE
        scancode_data_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/mongodb-sspl-1.0.yml
        spdx_license_key: SSPL-1.0
        spdx_url: https://spdx.org/licenses/SSPL-1.0
        start_line: 1
        end_line: 1
        matched_rule:
            identifier: mongodb-sspl-1.0_60.RULE
            license_expression: mongodb-sspl-1.0
            licenses:
                - mongodb-sspl-1.0
            referenced_filenames: []
            is_license_text: no
            is_license_notice: no
            is_license_reference: yes
            is_license_tag: no
            is_license_intro: no
            has_unknown: no
            matcher: 2-aho
            rule_length: 1
            matched_length: 1
            match_coverage: '100.0'
            rule_relevance: 90
        matched_text: SSPL_
license_expressions:
    - mongodb-sspl-1.0
@rspier
Copy link

rspier commented May 23, 2022

This binary file contains SSpL https://android.googlesource.com/platform/packages/apps/DocumentsUI/+/refs/heads/master/tests/res/raw/images_7z which also triggers

$ strings images_7z  | grep -i sspl
SSpL

@pombredanne
Copy link
Member Author

@rspier Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants