Open stoneman258 opened 2 months ago
Nice catch! This is due to the imprecise pointer analysis. I am working to migrate to a new more precise point er analysis based on RUPTA. Current work around is to blacklist Tokio and only detect the project repo.
Description
I encountered a false positive while using Lockbud to analyze the
ntpd
package. Lockbud flagged a use-after-free in thetokio
crate. However, upon closer inspection, it seems this might be an incorrect detection.Code snippets
https://github.com/tokio-rs/tokio/blob/48c55768fd6ae47d1c015b154a0ebd2579688359/tokio/src/util/slab.rs#L311-L323
Result
Lockbud report a wrong
UseAfterFree
warning. Thevec
is never used after drop in line 323.Reproduction