mirror of https://github.com/OISF/suricata
rust: return empty slice without using from_raw_parts
As this triggers rustc 1.78
unsafe precondition(s) violated: slice::from_raw_parts requires
the pointer to be aligned and non-null,
and the total size of the slice not to exceed `isize::MAX`
Ticket: 7013
(cherry picked from commit 5dc8dea869)
pull/11096/head
parent
5a5fe36bfc
commit
e797836b6e
Loading…
Reference in New Issue