Unratedcrates.ioPublished
Memory corruption bug on ApplyResult type
- Affected
- crates.io z3 >= 0.0.0-0, < 0.21.0
- Fixed in
- 0.21.0· Vendor fix available
- Issue
- The `ApplyResult` type contains a raw pointer to a C++ memory object and has a derived `Clone` implementation which creates a reference to this object without incrementing the associated reference counter. As a result, if an instance of `ApplyResult` is duplicated through `Clone` and both instances are dropped a use-after-free can occur.
Recommended action: Upgrade to 0.21.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.