ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Custom dissector causing wireshark to crash

From: didier <dgautheron@xxxxxxxx>
Date: Tue, 25 Aug 2009 23:23:47 +0200
Hi,
Le mardi 25 aoᅵt 2009 ᅵ 17:00 -0400, Patrick Lannigan a ᅵcrit :
The init looks wrong to me:
> Here is the hf array construction, can anyone see what the error is?
> 
>         { &hf_abc_txPower, 
>             { "txPower", "abc.txPower",
>             FT_UINT8, BASE_DEC,
>             "Transmit power for message in dBm",
>             0x0, NULL, HFILL }
>         },
Should be
        { &hf_abc_txPower, 
            { "txPower", "abc.txPower",
            FT_UINT8, BASE_DEC,
            NULL,0x0, 
            "Transmit power for message in dBm",
	   , HFILL }
        },

Didier