VDB
EN

RUSTSEC-2026-0183

Potential undefined behavior when calling Remote::list()

상세

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.

이 버전이 영향받나요?

사용 중인 패키지 버전을 입력하면 즉시 평가합니다.

영향 패키지

crates.io / git2
최초 영향 버전: 0.0.0-0 수정 버전: 0.21.0

Upgrade git2 to 0.21.0 or newer (ecosystem crates.io).

참고