Wireshark-dev: [Wireshark-dev] Megaco dissector: problem with dissection of MediaDescriptor
From: Oleg Kostenko <[email protected]>
Date: Wed, 30 Aug 2006 22:16:33 +0400

I've found some strange code in dissect_megaco_mediadescriptor():

        tvb_current_offset = tvb_find_guint8(tvb, tvb_previous_offset, tvb_RBRKT, '=');
        tokenlen = tvb_current_offset  - tvb_previous_offset -1;
        if (tokenlen > 0)
                proto_tree_add_text(megaco_mediadescriptor_tree, tvb,   tvb_previous_offset, tokenlen,
                        "%s",   tvb_format_text(tvb, tvb_previous_offset,       tokenlen));

I'm not sure how it's supposed to work but this is how it works with
my packets:

Suppose there are the following lines in the packet:


Here's the result of the dissection of this fragment:

Media Descriptor
  Local Control Descriptor: Mode=SendReceive
    Mode: SendReceive

Looks as if the line 'Media{\nLocalControl{Mod' should not be there,
or at least it should look somehow different.

As I don't know how this was supposed to work, I cannot make a patch.
Would you please check what's wrong with that code?

Best regards,
 Oleg                          mailto:[email protected]