git2
Affected
- introduced
0.0.0-0, fixed0.21.0(semver)
Fixed versions
0.21.0
Fix
- Fixed version
0.21.0cargo update -p git2 --precise 0.21.0
Advisory
Also known as: None
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.
Not rated by the source.
0.0.0-0, fixed 0.21.0 (semver)0.21.0
0.21.0cargo update -p git2 --precise 0.21.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0