]> git.ipfire.org Git - thirdparty/suricata.git/commit
dcerpc/udp: remove transmute
authorShivani Bhardwaj <shivanib134@gmail.com>
Sat, 20 Feb 2021 06:30:17 +0000 (12:00 +0530)
committerVictor Julien <victor@inliniac.net>
Mon, 22 Feb 2021 10:16:40 +0000 (11:16 +0100)
commit0ca8591994abfe92bbef20ea6ab1856b11e3efde
tree4113197e4354914d1e7f3819169b3c4663082d3d
parentc6aadf0dfa0d438e3a4a46db2de893b62e76d7ce
dcerpc/udp: remove transmute

The book defines transmute as "This is really, truly, the most horribly unsafe
thing you can do in Rust. The guardrails here are dental floss."
Transmute can result into mind boggling undefined behaviors. Get rid of
it wherever possible.
rust/src/dcerpc/dcerpc_udp.rs