DHI-bpjq-v6li-dmvu-p3sl
When calling `Remote::list()` for a remote of a git repository, when that remote does not advertise any references…
Unscored
- CVSS
- —
- EPSS
- —
- Published
- 2026-11-20
- Age
- 11d old
- Modified
- 2026-11-27
- Product
- rust
Description
When calling `Remote::list()` for a remote of a git repository, when that remote does not advertise any references, git2 passes a null pointer to the unsafe function `slice::from_raw_parts()`. Based on the safety section documentation of function, data must be non-null even for slices of length zero. Thus, the use of a null pointer leads to undefined behavior.
Sources
- OSV · first seen 8d ago · CC-BY 4.0