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
Agreed, good find.
The right thing to do is probably to remove the #[allow(clippy::not_unsafe_ptr_arg_deref)] and mark the functions as unsafe instead. Also, functions like call_reply_type should definitely not be in the public API and we should mark them as pub(crate).
All of these functions supressing the clippy lint
clippy::not_unsafe_ptr_arg_deref
seem to be trivially unsound:redismodule-rs/src/raw.rs
Lines 185 to 591 in 56a8082
There are more instances of supressions of this lint in this repository: https://github.com/RedisLabsModules/redismodule-rs/search?q=not_unsafe_ptr_arg_deref
Even if they were not exposed in the crate's public API, having unsound functions like that internally would be error prone.
At least one of these is available in the public API. Example safe rust code that triggers Undefined Behaviour:
I found these after reading rust-lang/rust-clippy#7666 and searching all of github for code supressing this clippy lint.
The text was updated successfully, but these errors were encountered: