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] Memmory handling problem in ANSI TCAP?

From: Florent Drouin <florent.drouin@xxxxxxxxxxxxxxxxx>
Date: Mon, 17 Sep 2007 08:37:51 +0200
    Hi Anders,

I think you should replace the memory allocation in packet_ansi_tcap_templace.c

ansi_tcap_saved_invokedata = g_malloc(sizeof(ansi_tcap_saved_invokedata));
=> ansi_tcap_saved_invokedata = g_malloc(sizeof(struct ansi_tcap_invokedata_t));

And probably replace strcpy by strncpy.
You have to make the same modification in ansi_map dissector.

Regards
Florent

Anders Broman wrote:

Hi,

On WinXP the trace from http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1820 occasionally

crashes Wireshark, any ideas?

Regards

Anders

------------------------------------------------------------------------

_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev