Open RomainLefeuvre opened 9 months ago
Thanks for the clear bug report!
This issue has not had any activity for 60 days and will be automatically closed in two weeks
This issue has not had any activity for 60 days and will be automatically closed in two weeks
See https://github.com/google/osv.dev/blob/master/CONTRIBUTING.md for how to contribute a PR if you're interested in helping out.
Describe the bug Multiple ranges on the same branch are not handled for GIT type.
I created a toy example based on the "multiple range example" : https://ossf.github.io/osv-schema/#multiple-range-example. In order to avoid recreating a toy repository we will reuse the one that we created for the previous issue : https://github.com/RomainLefeuvre/osv_issue_minimal_example with the following git history :
And this range of events :
https://github.com/google/osv.dev/commit/b22dc07d42b3117269aa6126238ffba086a2c255
To Reproduce Steps to reproduce the behaviour:
python -m osv.analyze_tool --detect_cherrypicks true --format json "./osv/osv_bug/vuln_2.json"
Result
The following commits are detected
d241812d2722d573a7b096d44d139946d8dcb484
(X)e54222cfdedd86a37dc37d999ebc63dccf3fc9da
(A)Expected behaviour C and D should also be reported as vulnerable