https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=14483

            Bug ID: 14483
           Summary: tshark memory leaks with asan / valgrind [smb] (4/10)
           Product: Wireshark
           Version: Git
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: Major
          Priority: Low
         Component: Dissection engine (libwireshark)
          Assignee: bugzilla-ad...@wireshark.org
          Reporter: otto.air...@gmail.com
  Target Milestone: ---

Created attachment 16197
  --> https://bugs.wireshark.org/bugzilla/attachment.cgi?id=16197&action=edit
file to cause memory leak

Build Information:
TShark (Wireshark) 2.5.1 (v2.5.1rc0-467-g2eb6f3b5)
Built using clang 4.2.1 Compatible Clang 3.8.0 (tags/RELEASE_380/final).
--
tshark leaking memory when executing command:

ASAN_OPTIONS='abort_on_error=1:detect_leaks=1' tshark -2 -V -r <filename>

Direct leak of 9 byte(s) in 1 object(s) allocated from:
    #0 0x4c41c8 in __interceptor_malloc ??:?
    #2 0x7f346a2ba718 in g_malloc ??:?
    #4 0x7f3473db845b in dissect_smb2_command
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-smb2.c:9051
    #5 0x7f3473db845b in dissect_smb2
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-smb2.c:9437
    #7 0x7f3473daf491 in dissect_smb2_heur
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-smb2.c:9492
    #9 0x7f347268ac50 in dissector_try_heuristic
/home/fuzzer/wireshark/wireshark/epan/packet.c:2701
    #11 0x7f3473771b13 in dissect_netbios_payload
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-nbt.c:1066
    #12 0x7f3473771b13 in dissect_nbss_packet
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-nbt.c:1374
    #14 0x7f347376e16a in dissect_nbss
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-nbt.c:1677
    #16 0x7f3472693291 in call_dissector_through_handle
/home/fuzzer/wireshark/wireshark/epan/packet.c:694
    #18 0x7f34726840bb in call_dissector_work
/home/fuzzer/wireshark/wireshark/epan/packet.c:779
    #20 0x7f3472683b62 in dissector_try_uint_new
/home/fuzzer/wireshark/wireshark/epan/packet.c:1361
    #22 0x7f3473ee17c5 in decode_tcp_ports
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-tcp.c:5542
    #24 0x7f3473ee74d9 in process_tcp_payload
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-tcp.c:5611
    #26 0x7f3473ee4124 in desegment_tcp
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-tcp.c:3134
    #27 0x7f3473ee4124 in dissect_tcp_payload
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-tcp.c:5684
    #29 0x7f3473ef2800 in dissect_tcp
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-tcp.c:6522
    #31 0x7f3472693291 in call_dissector_through_handle
/home/fuzzer/wireshark/wireshark/epan/packet.c:694
    #33 0x7f34726840bb in call_dissector_work
/home/fuzzer/wireshark/wireshark/epan/packet.c:779
    #35 0x7f3472683b62 in dissector_try_uint_new
/home/fuzzer/wireshark/wireshark/epan/packet.c:1361
    #37 0x7f34733be501 in ip_try_dissect
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-ip.c:1845
    #38 0x7f34733be501 in dissect_ip_v4
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-ip.c:2303
    #40 0x7f3472693291 in call_dissector_through_handle
/home/fuzzer/wireshark/wireshark/epan/packet.c:694
    #42 0x7f34726840bb in call_dissector_work
/home/fuzzer/wireshark/wireshark/epan/packet.c:779
    #44 0x7f34726848de in dissector_try_uint_new
/home/fuzzer/wireshark/wireshark/epan/packet.c:1361
    #45 0x7f34726848de in dissector_try_uint
/home/fuzzer/wireshark/wireshark/epan/packet.c:1385
    #47 0x7f34730417b0 in dissect_ethertype
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-ethertype.c:259
    #49 0x7f3472693291 in call_dissector_through_handle
/home/fuzzer/wireshark/wireshark/epan/packet.c:694
    #51 0x7f34726840bb in call_dissector_work
/home/fuzzer/wireshark/wireshark/epan/packet.c:779
    #53 0x7f347267ff0b in call_dissector_only
/home/fuzzer/wireshark/wireshark/epan/packet.c:3092
    #54 0x7f347267ff0b in call_dissector_with_data
/home/fuzzer/wireshark/wireshark/epan/packet.c:3105
    #56 0x7f347303e51e in dissect_eth_common
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-eth.c:526
    #58 0x7f347303c087 in dissect_eth
/home/fuzzer/wireshark/wireshark/epan/dissectors/packet-eth.c:801
(discriminator 3)
    #60 0x7f3472693291 in call_dissector_through_handle
/home/fuzzer/wireshark/wireshark/epan/packet.c:694
    #62 0x7f34726840bb in call_dissector_work
/home/fuzzer/wireshark/wireshark/epan/packet.c:779
    #64 0x7f3472683b62 in dissector_try_uint_new
/home/fuzzer/wireshark/wireshark/epan/packet.c:1361

Credit goes to: Otto Airamo and Antti Levomäki, Forcepoint

-- 
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via:    Wireshark-bugs mailing list <wireshark-bugs@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
             mailto:wireshark-bugs-requ...@wireshark.org?subject=unsubscribe

Reply via email to