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

            Bug ID: 15449
           Summary: Buildbot crash output: fuzz-2019-01-25-3514.pcap
           Product: Wireshark
           Version: unspecified
          Hardware: x86-64
                OS: Ubuntu
            Status: CONFIRMED
          Severity: Major
          Priority: High
         Component: Dissection engine (libwireshark)
          Assignee: bugzilla-ad...@wireshark.org
          Reporter: buildbot-do-not-re...@wireshark.org
  Target Milestone: ---

Problems have been found with the following capture file:

https://www.wireshark.org/download/automated/captures/fuzz-2019-01-25-3514.pcap

stderr:
Input file: /home/wireshark/menagerie/menagerie/10129-trc_00004_20130227111552

Build host information:
Linux wsbb04 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018
x86_64 x86_64 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic

Buildbot information:
BUILDBOT_WORKERNAME=clang-code-analysis
BUILDBOT_BUILDNUMBER=4993
BUILDBOT_BUILDERNAME=Clang Code Analysis
BUILDBOT_URL=http://buildbot.wireshark.org/wireshark-master/
BUILDBOT_REPOSITORY=ssh://wireshark-build...@code.wireshark.org:29418/wireshark
BUILDBOT_GOT_REVISION=75484b106da95c3fe73815fca10a6f8208e066cc

Return value:  0

Dissector bug:  0

Valgrind error count:  1



Git commit
commit 75484b106da95c3fe73815fca10a6f8208e066cc
Author: Pascal Quantin <pascal.quan...@gmail.com>
Date:   Fri Jan 25 15:22:46 2019 +0100

    ETSI CAT: do not call tvb_bytes_to_str() with a 0 length

    Change-Id: Ibd8ebe801a7bb0196e9d0f8e1c19cc16050a4f60
    Reviewed-on: https://code.wireshark.org/review/31733
    Petri-Dish: Pascal Quantin <pascal.quan...@gmail.com>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Pascal Quantin <pascal.quan...@gmail.com>


Command and args: ./tools/valgrind-wireshark.sh -b
/home/wireshark/builders/wireshark-master-fuzz/clangcodeanalysis/install.plain/bin
 
==15341== Memcheck, a memory error detector
==15341== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==15341== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==15341== Command:
/home/wireshark/builders/wireshark-master-fuzz/clangcodeanalysis/install.plain/bin/tshark
-nr /fuzz/buildbot/clangcodeanalysis/valgrind-fuzz/fuzz-2019-01-25-3514.pcap
==15341== 
==15341== Conditional jump or move depends on uninitialised value(s)
==15341==    at 0xC98D106: ??? (in /lib/x86_64-linux-gnu/libgcrypt.so.20.2.1)
==15341==    by 0xC9855E4: ??? (in /lib/x86_64-linux-gnu/libgcrypt.so.20.2.1)
==15341==    by 0x76AC6B4: update_preauth_hash (packet-smb2.c:834)
==15341==    by 0x76A85BF: dissect_smb2_session_setup_request
(packet-smb2.c:3163)
==15341==    by 0x76A6F7A: dissect_smb2_command (packet-smb2.c:9189)
==15341==    by 0x76A62FE: dissect_smb2 (packet-smb2.c:9543)
==15341==    by 0x76A2F19: dissect_smb2_heur (packet-smb2.c:9598)
==15341==    by 0x816608F: dissector_try_heuristic (packet.c:2750)
==15341==    by 0x7332DB4: dissect_netbios_payload (packet-nbt.c:1066)
==15341==    by 0x7333336: dissect_nbss_packet (packet-nbt.c:1374)
==15341==    by 0x7330D75: dissect_nbss (packet-nbt.c:1674)
==15341==    by 0x8167DC7: call_dissector_through_handle (packet.c:706)
==15341== 
==15341== Conditional jump or move depends on uninitialised value(s)
==15341==    at 0x4C366F2: memmove (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15341==    by 0x76AC722: update_preauth_hash (packet-smb2.c:837)
==15341==    by 0x76A85BF: dissect_smb2_session_setup_request
(packet-smb2.c:3163)
==15341==    by 0x76A6F7A: dissect_smb2_command (packet-smb2.c:9189)
==15341==    by 0x76A62FE: dissect_smb2 (packet-smb2.c:9543)
==15341==    by 0x76A2F19: dissect_smb2_heur (packet-smb2.c:9598)
==15341==    by 0x816608F: dissector_try_heuristic (packet.c:2750)
==15341==    by 0x7332DB4: dissect_netbios_payload (packet-nbt.c:1066)
==15341==    by 0x7333336: dissect_nbss_packet (packet-nbt.c:1374)
==15341==    by 0x7330D75: dissect_nbss (packet-nbt.c:1674)
==15341==    by 0x8167DC7: call_dissector_through_handle (packet.c:706)
==15341==    by 0x8163A99: call_dissector_work (packet.c:791)
==15341== 
==15341== Conditional jump or move depends on uninitialised value(s)
==15341==    at 0x4C36702: memmove (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15341==    by 0x76AC722: update_preauth_hash (packet-smb2.c:837)
==15341==    by 0x76A85BF: dissect_smb2_session_setup_request
(packet-smb2.c:3163)
==15341==    by 0x76A6F7A: dissect_smb2_command (packet-smb2.c:9189)
==15341==    by 0x76A62FE: dissect_smb2 (packet-smb2.c:9543)
==15341==    by 0x76A2F19: dissect_smb2_heur (packet-smb2.c:9598)
==15341==    by 0x816608F: dissector_try_heuristic (packet.c:2750)
==15341==    by 0x7332DB4: dissect_netbios_payload (packet-nbt.c:1066)
==15341==    by 0x7333336: dissect_nbss_packet (packet-nbt.c:1374)
==15341==    by 0x7330D75: dissect_nbss (packet-nbt.c:1674)
==15341==    by 0x8167DC7: call_dissector_through_handle (packet.c:706)
==15341==    by 0x8163A99: call_dissector_work (packet.c:791)
==15341== 
==15341== Use of uninitialised value of size 8
==15341==    at 0x4C367E3: memmove (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15341==    by 0x76AC722: update_preauth_hash (packet-smb2.c:837)
==15341==    by 0x76A85BF: dissect_smb2_session_setup_request
(packet-smb2.c:3163)
==15341==    by 0x76A6F7A: dissect_smb2_command (packet-smb2.c:9189)
==15341==    by 0x76A62FE: dissect_smb2 (packet-smb2.c:9543)
==15341==    by 0x76A2F19: dissect_smb2_heur (packet-smb2.c:9598)
==15341==    by 0x816608F: dissector_try_heuristic (packet.c:2750)
==15341==    by 0x7332DB4: dissect_netbios_payload (packet-nbt.c:1066)
==15341==    by 0x7333336: dissect_nbss_packet (packet-nbt.c:1374)
==15341==    by 0x7330D75: dissect_nbss (packet-nbt.c:1674)
==15341==    by 0x8167DC7: call_dissector_through_handle (packet.c:706)
==15341==    by 0x8163A99: call_dissector_work (packet.c:791)
==15341== 
==15341== Invalid write of size 8
==15341==    at 0x4C367E3: memmove (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15341==    by 0x76AC722: update_preauth_hash (packet-smb2.c:837)
==15341==    by 0x76A85BF: dissect_smb2_session_setup_request
(packet-smb2.c:3163)
==15341==    by 0x76A6F7A: dissect_smb2_command (packet-smb2.c:9189)
==15341==    by 0x76A62FE: dissect_smb2 (packet-smb2.c:9543)
==15341==    by 0x76A2F19: dissect_smb2_heur (packet-smb2.c:9598)
==15341==    by 0x816608F: dissector_try_heuristic (packet.c:2750)
==15341==    by 0x7332DB4: dissect_netbios_payload (packet-nbt.c:1066)
==15341==    by 0x7333336: dissect_nbss_packet (packet-nbt.c:1374)
==15341==    by 0x7330D75: dissect_nbss (packet-nbt.c:1674)
==15341==    by 0x8167DC7: call_dissector_through_handle (packet.c:706)
==15341==    by 0x8163A99: call_dissector_work (packet.c:791)
==15341==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15341== 
==15341== 
==15341== Process terminating with default action of signal 11 (SIGSEGV):
dumping core
==15341==  Access not within mapped region at address 0x0
==15341==    at 0x4C367E3: memmove (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15341==    by 0x76AC722: update_preauth_hash (packet-smb2.c:837)
==15341==    by 0x76A85BF: dissect_smb2_session_setup_request
(packet-smb2.c:3163)
==15341==    by 0x76A6F7A: dissect_smb2_command (packet-smb2.c:9189)
==15341==    by 0x76A62FE: dissect_smb2 (packet-smb2.c:9543)
==15341==    by 0x76A2F19: dissect_smb2_heur (packet-smb2.c:9598)
==15341==    by 0x816608F: dissector_try_heuristic (packet.c:2750)
==15341==    by 0x7332DB4: dissect_netbios_payload (packet-nbt.c:1066)
==15341==    by 0x7333336: dissect_nbss_packet (packet-nbt.c:1374)
==15341==    by 0x7330D75: dissect_nbss (packet-nbt.c:1674)
==15341==    by 0x8167DC7: call_dissector_through_handle (packet.c:706)
==15341==    by 0x8163A99: call_dissector_work (packet.c:791)
==15341==  If you believe this happened as a result of a stack
==15341==  overflow in your program's main thread (unlikely but
==15341==  possible), you can try to increase the size of the
==15341==  main thread stack using the --main-stacksize= flag.
==15341==  The main thread stack size used in this run was 2084864.
==15341== 
==15341== HEAP SUMMARY:
==15341==     in use at exit: 25,854,233 bytes in 268,459 blocks
==15341==   total heap usage: 323,114 allocs, 54,655 frees, 39,813,843 bytes
allocated
==15341== 
==15341== LEAK SUMMARY:
==15341==    definitely lost: 0 bytes in 0 blocks
==15341==    indirectly lost: 0 bytes in 0 blocks
==15341==      possibly lost: 304 bytes in 1 blocks
==15341==    still reachable: 25,848,442 bytes in 268,373 blocks
==15341==         suppressed: 5,487 bytes in 85 blocks
==15341== Rerun with --leak-check=full to see details of leaked memory
==15341== 
==15341== For counts of detected and suppressed errors, rerun with: -v
==15341== Use --track-origins=yes to see where uninitialised values come from
==15341== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)

[ no debug trace ]

-- 
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