Project

General

Profile

Actions

Bug #4621

closed

rust panic: when using smb stream-depth

Added by Peter Manev about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Using master 7.0.0-dev
And enabling in either kb or mb a smb stream depth, results in core dump

app-layer.protocols.smb.stream-depth = 512kb

or
app-layer.protocols.smb.stream-depth = 1mb
 suricata -c /etc/suricata/suricata.yaml -T 
[29761] 24/8/2021 -- 12:35:45 - (suricata.c:1617) <Info> (ParseCommandLine) -- Running suricata under test mode
[29761] 24/8/2021 -- 12:35:45 - (suricata.c:1062) <Notice> (LogVersion) -- This is Suricata version 7.0.0-dev (9d24a53c5 2021-08-06) running in SYSTEM mode
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit }', src/smb/smb.rs:2321:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
Aborted (core dumped)

When that specific setting is commented out - everything is fine.

Actions

Also available in: Atom PDF