This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate smallpt

Dependencies

(5 total, 2 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 log^0.4.30.4.21up to date
 nalgebra ⚠️^0.150.32.4out of date
 num_cpus^1.8.01.16.0up to date
 rand^0.5.30.8.5out of date
 rayon^1.0.11.10.0up to date

Dev dependencies

(2 total, 2 outdated)

CrateRequiredLatestStatus
 minifb^0.10.60.25.0out of date
 structopt^0.2.100.3.26out of date

Security Vulnerabilities

nalgebra: VecStorage Deserialize Allows Violation of Length Invariant

RUSTSEC-2021-0070

The Deserialize implementation for VecStorage did not maintain the invariant that the number of elements must equal nrows * ncols. Deserialization of specially crafted inputs could allow memory access beyond allocation of the vector.

This flaw was introduced in v0.11.0 (086e6e) due to the addition of an automatically derived implementation of Deserialize for MatrixVec. MatrixVec was later renamed to VecStorage in v0.16.13 (0f66403) and continued to use the automatically derived implementation of Deserialize.

This flaw was corrected in commit 5bff536 by returning an error during deserialization if the number of elements does not exactly match the expected size.