You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you explain why you think this is actually a bug? Calling init multiple times is invalid use and the crate doesn't use it that way. So why spend extra effort on supporting it?
I believe that while it would panic, that it still does not lead to UB or anything.
signal-hook/src/iterator/exfiltrator/raw.rs
Lines 87 to 94 in 7dfed90
Noticed that if init is called multiple times, the code will panic.
Probable fix is like:
Use
compare_and_exchange
and only store the value when theslot.0
is null.The text was updated successfully, but these errors were encountered: