[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wireshark-dev
Subject:    Re: [Wireshark-dev] wireshark assertion issue
From:       Guy Harris <guy () alum ! mit ! edu>
Date:       2009-11-23 21:02:50
Message-ID: FADD04E1-6225-41BE-99D9-56346BE9CFD1 () alum ! mit ! edu
[Download RAW message or body]


On Nov 22, 2009, at 11:20 PM, Rach, Darshan wrote:

> Doing this way, I am getting a DISSECTOR BUG.
>
> ("idx >= 0" failed in proto_item_add_subtree())
>
> Kindly help what might have gone wrong?

You passed a negative number as the second argument to  
proto_item_add_subtree() - or something you called did, such as  
process_reassembled_data().

Those numbers are usually initialized in a call to  
proto_register_subtree_array(); you pass  
proto_register_subtree_array() a pointer to the first element of an  
array of pointers to variables to initialize, and the number of  
elements in the array.

The first two elements of your msg_frag_items structure are pointers  
to numbers that get passed to proto_item_add_subtree(); make sure  
pointers to them are also in the array you passed to  
proto_register_subtree_array().
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic