Skip to content

Can anyone tell how primaryLocationLineHash be generated? #6367

@Sharyie

Description

@Sharyie

Discussed in #5982

Originally posted by ZH3FENG June 1, 2021
I have read part of SARIF https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html, particularly partialFingerprints property.
Also, SARIF results file from https://lgtm.com/help/lgtm/sarif-results-file.

This will contain, at a minimum, a value for the primaryLocationLineHash, which provides a fingerprint based on the context of the primary location.

Can anyone tell me how primaryLocationLineHash be generated. What algorithm ?
I have noticed the result contains codeflow property. Does codeflow affect generation of primaryLocationLineHash ?

I got the same confusion,could anyone tell some rough factors during primaryLocationLineHash been generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleacknowledgedGitHub staff acknowledges this issueawaiting-responseThe CodeQL team is awaiting further input or clarification from the original reporter of this issue.questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions