Skip to main content
Menu
Advisories

impl FromMdbValue for bool is unsound

GHSA-F9G6-FP84-FV92Published Updated GitHub

Description

The implementation of FromMdbValue has several unsoundness issues. First of all, it allows to reinterpret arbitrary bytes as a bool and could make undefined behavior happen with safe function. Secondly, it allows transmuting pointer without taking memory layout into consideration. The details of reproducing the bug are available here.

Affected versions

References