Traceback (most recent call last):
File "/usr/local/bin/worker.py", line 578, in _do_process_task
self._source_update(message)
File "/usr/local/bin/worker.py", line 410, in _source_update
self._do_update(source_repo, repo, vulnerability, path, original_sha256)
File "/usr/local/bin/worker.py", line 498, in _do_update
result = self._analyze_vulnerability(source_repo, repo, vulnerability,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/worker.py", line 463, in _analyze_vulnerability
result = osv.analyze(
^^^^^^^^^^^^
File "/env/osv/impact.py", line 672, in analyze
_analyze_git_ranges(repo_analyzer, checkout_path, affected_range,
File "/env/osv/impact.py", line 584, in _analyze_git_ranges
result = repo_analyzer.get_affected(package_repo, all_introduced,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/env/osv/impact.py", line 134, in get_affected
affected_commits, affected_ranges, tags = self._get_affected_range(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/env/osv/impact.py", line 228, in _get_affected_range
equivalent_last_affected_commit = self._get_equivalent_commit(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/env/osv/impact.py", line 286, in _get_equivalent_commit
target_patch_id = repo.diff(target.parents[0], target).patchid
~~~~~~~~~~~~~~^^^
IndexError: list index out of range
https://github.com/google/osv.dev/blob/v2024.09.18/osv/impact.py
Example:
https://cve-osv-conversion.storage.googleapis.com/osv-output/CVE-2023-43879.json:
Note the lack of any
parent
commit here: