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 winit

Dependencies

(15 total, 8 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 android_glue^0.20.2.3up to date
 cocoa^0.170.26.0out of date
 core-foundation^0.60.10.0out of date
 core-graphics^0.160.24.0out of date
 image ⚠️^0.190.25.5out of date
 lazy_static^11.5.0up to date
 libc^0.20.2.162up to date
 log^0.40.4.22up to date
 objc^0.2.30.2.7up to date
 parking_lot^0.60.12.3out of date
 percent-encoding^1.02.3.1out of date
 smithay-client-toolkit^0.3.00.19.2out of date
 wayland-client^0.20.100.31.7out of date
 winapi^0.3.50.3.9up to date
 x11-dl^2.18.32.21.0up to date

Security Vulnerabilities

image: Flaw in interface may drop uninitialized instance of arbitrary types

RUSTSEC-2019-0014

Affected versions of this crate would call Vec::set_len on an uninitialized vector with user-provided type parameter, in an interface of the HDR image format decoder. They would then also call other code that could panic before initializing all instances.

This could run Drop implementations on uninitialized types, equivalent to use-after-free, and allow an attacker arbitrary code execution.

Two different fixes were applied. It is possible to conserve the interface by ensuring proper initialization before calling Vec::set_len. Drop is no longer called in case of panic, though.

Starting from version 0.22, a breaking change to the interface requires callers to pre-allocate the output buffer and pass a mutable slice instead, avoiding all unsafe code.