Project

General

Profile

Actions

Bug #4525

closed

segv with --set cmdline option if incorrect key is provided

Added by Shivani Bhardwaj 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:
Needs backport to 6.0

Description

Example:

sudo ./src/suricata --set outputs.eve-json.types.files.force-magic=yes -i wlp0s20f3

gives Segmentation Fault.


Related issues

Copied to Bug #4531: segv with --set cmdline option if incorrect key is providedClosedJeff LucovskyActions
Actions #1

Updated by Philippe Antoine 4 months ago

Stack trace is

AddressSanitizer:DEADLYSIGNAL
=================================================================
==52362==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00010ce3d7a0 bp 0x7ffee44a2590 sp 0x7ffee44a1d10 T0)
==52362==The signal is caused by a READ memory access.
==52362==Hint: address points to the zero page.
    #0 0x10ce3d79f in wrap_strcmp (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x1679f)
    #1 0x10babf278 in MacSetRegisterFlowStorage util-macset.c:69
    #2 0x10ba6a4f9 in PostConfLoadedSetup suricata.c:2488
    #3 0x10ba6c94a in SuricataMain suricata.c:2767
    #4 0x7fff4fcf6014 in start (libdyld.dylib:x86_64+0x1014)
Actions #2

Updated by Philippe Antoine 4 months ago

  • Status changed from Assigned to In Review
  • Label Needs backport to 5.0, Needs backport to 6.0 added
Actions #3

Updated by Shivani Bhardwaj 4 months ago

  • Assignee changed from Shivani Bhardwaj to Philippe Antoine
Actions #5

Updated by Jeff Lucovsky 3 months ago

  • Label deleted (Needs backport to 5.0)
Actions #6

Updated by Jeff Lucovsky 3 months ago

  • Copied to Bug #4531: segv with --set cmdline option if incorrect key is provided added
Actions

Also available in: Atom PDF