Project

General

Profile

Actions

Bug #4901

closed

eve: memory leak related to dns

Added by Victor Julien about 3 years ago. Updated almost 3 years ago.

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

Description

Using SV test dns-lua-rules

=================================================================
==372881==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 40 byte(s) in 1 object(s) allocated from:
    #0 0x4a4c2d in malloc (/home/victor/sync/devel/suricata-5.0.x/src/suricata+0x4a4c2d)
    #1 0x7f5f83e7569a in json_array (/usr/lib/x86_64-linux-gnu/libjansson.so.4+0x869a)
    #2 0x1acb449 in AlertJsonDns /home/victor/sync/devel/suricata-5.0.x/src/output-json-alert.c:206:27
    #3 0x1ac7f5d in AlertJson /home/victor/sync/devel/suricata-5.0.x/src/output-json-alert.c:484:21
    #4 0x1ac2a7b in JsonAlertLogger /home/victor/sync/devel/suricata-5.0.x/src/output-json-alert.c:690:16
    #5 0x1b90798 in OutputPacketLog /home/victor/sync/devel/suricata-5.0.x/src/output-packet.c:116:13
    #6 0x1a9f6fc in OutputLoggerLog /home/victor/sync/devel/suricata-5.0.x/src/output.c:924:13
    #7 0x19dbfb8 in FlowWorker /home/victor/sync/devel/suricata-5.0.x/src/flow-worker.c:294:5
    #8 0x2029a94 in TmThreadsSlotVarRun /home/victor/sync/devel/suricata-5.0.x/src/tm-threads.c:132:17
    #9 0x204cd09 in TmThreadsSlotVar /home/victor/sync/devel/suricata-5.0.x/src/tm-threads.c:607:17
    #10 0x7f5f83e53608 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4a4c2d in malloc (/home/victor/sync/devel/suricata-5.0.x/src/suricata+0x4a4c2d)
    #1 0x7f5f83e756ca in json_array (/usr/lib/x86_64-linux-gnu/libjansson.so.4+0x86ca)
    #2 0x1acb449 in AlertJsonDns /home/victor/sync/devel/suricata-5.0.x/src/output-json-alert.c:206:27
    #3 0x1ac7f5d in AlertJson /home/victor/sync/devel/suricata-5.0.x/src/output-json-alert.c:484:21
    #4 0x1ac2a7b in JsonAlertLogger /home/victor/sync/devel/suricata-5.0.x/src/output-json-alert.c:690:16
    #5 0x1b90798 in OutputPacketLog /home/victor/sync/devel/suricata-5.0.x/src/output-packet.c:116:13
    #6 0x1a9f6fc in OutputLoggerLog /home/victor/sync/devel/suricata-5.0.x/src/output.c:924:13
    #7 0x19dbfb8 in FlowWorker /home/victor/sync/devel/suricata-5.0.x/src/flow-worker.c:294:5
    #8 0x2029a94 in TmThreadsSlotVarRun /home/victor/sync/devel/suricata-5.0.x/src/tm-threads.c:132:17
    #9 0x204cd09 in TmThreadsSlotVar /home/victor/sync/devel/suricata-5.0.x/src/tm-threads.c:607:17
    #10 0x7f5f83e53608 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)

SUMMARY: AddressSanitizer: 104 byte(s) leaked in 2 allocation(s).
Actions #1

Updated by Jeff Lucovsky about 3 years ago

  • Status changed from New to In Review
Actions #2

Updated by Jeff Lucovsky almost 3 years ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF