PT-2026-6539 · Crates.Io · Git2

Published

2026-02-02

·

Updated

2026-02-02

None

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
if we dereference the Buf struct right after calling new() or default() on Buf struct, it passes Null Pointer to the unsafe function slice::from raw parts. Based on the safety section documentation of function, data must be non-null and aligned even for zero-length slices or slices of ZSTs. Thus, passing Null Pointer will lead to undefined behavior.

Related Identifiers

RUSTSEC-2026-0008

Affected Products

Git2