Project

General

Profile

Actions

Bug #4621

closed

rust panic: when using smb stream-depth

Added by Peter Manev about 1 year ago. Updated about 1 year 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 #1

Updated by Victor Julien about 1 year ago

  • Status changed from New to Assigned
  • Assignee set to Shivani Bhardwaj
  • Target version set to 7.0rc1

Looks like e5c948df87541509e34445d80c5ef0242da3326f broke this.

Actions #2

Updated by Shivani Bhardwaj about 1 year ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF