VDB
Sign up
—

RUSTSEC-2024-0374

Segmentation fault due to use of uninitialized memory

Details

When trying to decompress a file using "ouch", we can reach the function "ouch::archive::zip::convert_zip_date_time". In the function, there is a unsafe function, "transmute". Once the "transmute" function is called to convert the type of "month" object, the address of the object is changed to the uninitialized memory region. After that, when other function tries to dereference "month", segmentation fault occurs.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/ouch
Introduced in: 0.0.0-0Fixed in: 0.3.2-0

Upgrade ouch to 0.3.2-0 or newer (ecosystem crates.io).

References