Actions
Bug #7479
opensegfault using dummy config output.eve-log.types.alert.payload-buffer-size = 0
Affected Versions:
Effort:
Difficulty:
Label:
C, Good First Issue
Description
Setting output.eve-log.types.alert.payload-buffer-size = 0
in yaml should lead to a log error (because it is dumn) but instead we get
#0 0x00007bccf619acac in ?? () from target:/lib/x86_64-linux-gnu/libc.so.6 #1 0x0000157126b2679c in memcpy (__len=4294967295, __src=0x7bcc8a4e78b0, __dest=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34 #2 MemBufferWriteRaw (dst=0x7bcc8a46bfa0, raw=raw@entry=0x7bcc8a4e78b0 "", raw_len=raw_len@entry=12) at util-buffer.c:121 #3 0x0000157126bcde8b in AlertJsonStreamDataCallback (cb_data=cb_data@entry=0x7bcc9cf90fe0, input=0x7bcc8a4e78b0 "", input_len=input_len@entry=12, input_offset=input_offset@entry=0) at output-json-alert.c:734 #4 0x0000157126c049d3 in StreamReassembleRawDo (stream=0x7bcc8a465a68, Callback=0x157126bcde60 <AlertJsonStreamDataCallback>, cb_data=cb_data@entry=0x7bcc9cf90fe0, progress_in=<optimized out>, re=12, progress_out=0x7bcc9cf90fc0, eof=false, respect_inspect_depth=false, ssn=<optimized out>) at stream-tcp-reassemble.c:1816 #5 0x0000157126c06690 in StreamReassembleLog (ssn=<optimized out>, stream=<optimized out>, Callback=Callback@entry=0x157126bcde60 <AlertJsonStreamDataCallback>, cb_data=cb_data@entry=0x7bcc9cf90fe0, progress_in=<optimized out>, progress_out=progress_out@entry=0x7bcc9cf90fc0, eof=<optimized out>) at stream-tcp-reassemble.c:1934 #6 0x0000157126bcee09 in AlertJsonStreamData (aft=0x7bcc8a46bf80, f=<optimized out>, aft=0x7bcc8a46bf80, f=<optimized out>, jb=0x7bcc8a4e9d70, p=0x7bcc95e349e0, json_output_ctx=0x15712977c7b0) at output-json-alert.c:756 #7 AlertJson (tv=0x1571465df810, aft=0x7bcc8a46bf80, p=0x7bcc95e349e0) at output-json-alert.c:890 #8 0x0000157126be4446 in OutputPacketLog (tv=0x1571465df810, p=0x7bcc95e349e0, thread_data=<optimized out>) at output-packet.c:110 #9 0x0000157126bca814 in OutputLoggerLog (tv=tv@entry=0x1571465df810, p=p@entry=0x7bcc95e349e0, thread_data=<optimized out>) at output.c:883 #10 0x0000157126bc5755 in FlowWorker (tv=0x1571465df810, p=0x7bcc95e349e0, data=0x7bcc95e40d30) at flow-worker.c:643 #11 0x0000157126b1feb7 in TmThreadsSlotVarRun (tv=tv@entry=0x1571465df810, p=p@entry=0x7bcc95e349e0, slot=<optimized out>) at tm-threads.c:135 #12 0x0000157126bf0014 in TmThreadsSlotProcessPkt (tv=0x1571465df810, s=<optimized out>, p=0x7bcc95e349e0) at tm-threads.h:200 #13 0x0000157126bf0330 in AFPParsePacketV3 (pbd=0x7bcbb409e000, ppd=0x7bcbb409e588, ptv=0x7bcc93fffe40) at source-af-packet.c:1013 #14 AFPWalkBlock (pbd=0x7bcbb409e000, ptv=0x7bcc93fffe40) at source-af-packet.c:1032 #15 AFPReadFromRingV3 (ptv=ptv@entry=0x7bcc93fffe40) at source-af-packet.c:1079 #16 0x0000157126bf0a9a in ReceiveAFPLoop (tv=0x1571465df810, data=0x7bcc93fffe40, slot=<optimized out>) at source-af-packet.c:1431
No data to display
Actions