Problems have been found with the following capture file:https://www.wireshark.org/download/automated/captures/fuzz-2015-03-25-30531.pcapstderr:Input file: /home/wireshark/menagerie/menagerie/test-io-graphBuild host information:Linux wsbb04 3.13.0-46-generic #79-Ubuntu SMP Tue Mar 10 20:06:50 UTC 2015 x86_64 x86_64 x86_64 GNU/LinuxDistributor ID: UbuntuDescription: Ubuntu 14.04.2 LTSRelease: 14.04Codename: trustyBuildbot information:BUILDBOT_REPOSITORY=ssh://wireshark-buildbot@code.wireshark.org:29418/wiresharkBUILDBOT_BUILDNUMBER=3192BUILDBOT_URL=http://buildbot.wireshark.org/trunk/BUILDBOT_BUILDERNAME=Clang Code AnalysisBUILDBOT_SLAVENAME=clang-code-analysisBUILDBOT_GOT_REVISION=a6fc6aa0b4efc1a1c3d7a2e3b5189e888fb6ccc2Return value: 0Dissector bug: 0Valgrind error count: 1Git commitcommit a6fc6aa0b4efc1a1c3d7a2e3b5189e888fb6ccc2Author: Evan Huus <eapache@gmail.com>Date: Sat Mar 21 13:19:25 2015 -0400 wcp: add validations to decompressed_entry Ensure that a reference to past bytes refers to bytes that actually exist. Bug: 10978 Change-Id: If95d785ee15243c88edcd7115b5ff25fbaa08e6c Reviewed-on: https://code.wireshark.org/review/7783 Petri-Dish: Evan Huus <eapache@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Evan Huus <eapache@gmail.com>Command and args: ./tools/valgrind-wireshark.sh==7921== Memcheck, a memory error detector==7921== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.==7921== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info==7921== Command: /home/wireshark/builders/wireshark-master-fuzz/clangcodeanalysis/install/bin/tshark -nr /fuzz/buildbot/clangcodeanalysis/valgrind-fuzz/fuzz-2015-03-25-30531.pcap==7921====7921====7921== HEAP SUMMARY:==7921== in use at exit: 2,678,380 bytes in 53,738 blocks==7921== total heap usage: 4,183,842 allocs, 4,130,104 frees, 236,947,329 bytes allocated==7921====7921== LEAK SUMMARY:==7921== definitely lost: 135,800 bytes in 2,221 blocks==7921== indirectly lost: 171,832 bytes in 2,952 blocks==7921== possibly lost: 0 bytes in 0 blocks==7921== still reachable: 2,370,748 bytes in 48,565 blocks==7921== suppressed: 0 bytes in 0 blocks==7921== Rerun with --leak-check=full to see details of leaked memory==7921====7921== For counts of detected and suppressed errors, rerun with: -v==7921== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 1 from 1)[ no debug trace ]
==20851== 22,448 (10,736 direct, 11,712 indirect) bytes in 122 blocks are definitely lost in loss record 3,555 of 3,564==20851== at 0x4C2ABA0: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==20851== by 0xB8AC7C9: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0xB8C370F: g_slice_alloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0xB89577D: g_hash_table_new_full (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0x75692CE: x11_stateinit (packet-x11.c:4805)==20851== by 0x75EA4E7: dissect_x11_replies (packet-x11.c:4845)==20851== by 0x6A98D49: call_dissector_through_handle (packet.c:614)==20851== by 0x6A99F40: call_dissector_work (packet.c:700)==20851== by 0x6A9ABB2: dissector_try_uint_new (packet.c:1132)==20851== by 0x743B546: decode_tcp_ports (packet-tcp.c:4129)==20851== by 0x743BAF4: process_tcp_payload (packet-tcp.c:4187)==20851== by 0x743C3F7: dissect_tcp_payload (packet-tcp.c:4262)==20851====20851== 22,448 (10,736 direct, 11,712 indirect) bytes in 122 blocks are definitely lost in loss record 3,556 of 3,564==20851== at 0x4C2ABA0: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==20851== by 0xB8AC7C9: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0xB8C370F: g_slice_alloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0xB89577D: g_hash_table_new_full (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0x75692E9: x11_stateinit (packet-x11.c:4806)==20851== by 0x75EA4E7: dissect_x11_replies (packet-x11.c:4845)==20851== by 0x6A98D49: call_dissector_through_handle (packet.c:614)==20851== by 0x6A99F40: call_dissector_work (packet.c:700)==20851== by 0x6A9ABB2: dissector_try_uint_new (packet.c:1132)==20851== by 0x743B546: decode_tcp_ports (packet-tcp.c:4129)==20851== by 0x743BAF4: process_tcp_payload (packet-tcp.c:4187)==20851== by 0x743C3F7: dissect_tcp_payload (packet-tcp.c:4262)==20851====20851== 27,600 (13,200 direct, 14,400 indirect) bytes in 150 blocks are definitely lost in loss record 3,559 of 3,564==20851== at 0x4C2ABA0: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==20851== by 0xB8AC7C9: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0xB8C370F: g_slice_alloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0xB89577D: g_hash_table_new_full (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0x75692CE: x11_stateinit (packet-x11.c:4805)==20851== by 0x75EEB97: dissect_x11_requests (packet-x11.c:4550)==20851== by 0x6A98D49: call_dissector_through_handle (packet.c:614)==20851== by 0x6A99F40: call_dissector_work (packet.c:700)==20851== by 0x6A9ABB2: dissector_try_uint_new (packet.c:1132)==20851== by 0x743B5BF: decode_tcp_ports (packet-tcp.c:4134)==20851== by 0x743BAF4: process_tcp_payload (packet-tcp.c:4187)==20851== by 0x743C3F7: dissect_tcp_payload (packet-tcp.c:4262)==20851====20851== 27,600 (13,200 direct, 14,400 indirect) bytes in 150 blocks are definitely lost in loss record 3,560 of 3,564==20851== at 0x4C2ABA0: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==20851== by 0xB8AC7C9: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0xB8C370F: g_slice_alloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0xB89577D: g_hash_table_new_full (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0x75692E9: x11_stateinit (packet-x11.c:4806)==20851== by 0x75EEB97: dissect_x11_requests (packet-x11.c:4550)==20851== by 0x6A98D49: call_dissector_through_handle (packet.c:614)==20851== by 0x6A99F40: call_dissector_work (packet.c:700)==20851== by 0x6A9ABB2: dissector_try_uint_new (packet.c:1132)==20851== by 0x743B5BF: decode_tcp_ports (packet-tcp.c:4134)==20851== by 0x743BAF4: process_tcp_payload (packet-tcp.c:4187)==20851== by 0x743C3F7: dissect_tcp_payload (packet-tcp.c:4262)==20851====20851== 64,768 (30,976 direct, 33,792 indirect) bytes in 352 blocks are definitely lost in loss record 3,563 of 3,564==20851== at 0x4C2ABA0: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==20851== by 0xB8AC7C9: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0xB8C370F: g_slice_alloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0xB89577D: g_hash_table_new_full (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0x75692CE: x11_stateinit (packet-x11.c:4805)==20851== by 0x75EEB97: dissect_x11_requests (packet-x11.c:4550)==20851== by 0x6A98D49: call_dissector_through_handle (packet.c:614)==20851== by 0x6A99F40: call_dissector_work (packet.c:700)==20851== by 0x6A9ABB2: dissector_try_uint_new (packet.c:1132)==20851== by 0x743B546: decode_tcp_ports (packet-tcp.c:4129)==20851== by 0x743BAF4: process_tcp_payload (packet-tcp.c:4187)==20851== by 0x743C3F7: dissect_tcp_payload (packet-tcp.c:4262)==20851====20851== 64,768 (30,976 direct, 33,792 indirect) bytes in 352 blocks are definitely lost in loss record 3,564 of 3,564==20851== at 0x4C2ABA0: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==20851== by 0xB8AC7C9: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0xB8C370F: g_slice_alloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0xB89577D: g_hash_table_new_full (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1)==20851== by 0x75692E9: x11_stateinit (packet-x11.c:4806)==20851== by 0x75EEB97: dissect_x11_requests (packet-x11.c:4550)==20851== by 0x6A98D49: call_dissector_through_handle (packet.c:614)==20851== by 0x6A99F40: call_dissector_work (packet.c:700)==20851== by 0x6A9ABB2: dissector_try_uint_new (packet.c:1132)==20851== by 0x743B546: decode_tcp_ports (packet-tcp.c:4129)==20851== by 0x743BAF4: process_tcp_payload (packet-tcp.c:4187)==20851== by 0x743C3F7: dissect_tcp_payload (packet-tcp.c:4262)