]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/nfs: explicitly handle GAPs from C
authorVictor Julien <victor@inliniac.net>
Thu, 25 Jan 2018 16:55:17 +0000 (17:55 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 12 Feb 2018 09:02:08 +0000 (10:02 +0100)
commite238277830eaf502abe632417badb9297ed32100
treefe4d6a19f74ebb384f8a3a1e618cacb90d4a7727
parenta83c9a376d0168ba322bbe1986d45bc723383e83
rust/nfs: explicitly handle GAPs from C

It seems that Rust optimizes this code in such a way that it
passes the null ptr along as real data.

    if buf.as_ptr().is_null() && input_len > 0 {
rust/src/nfs/nfs.rs
src/app-layer-nfs-tcp.c