Ethereal-dev: [Ethereal-dev] 2 patches to avoid Ethereal crash dumps

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "RABRET Laurent RD-MAPS-ISS" <laurent.rabret@xxxxxxxxxxxxxxxxx>
Date: Thu, 9 Mar 2006 02:58:37 +0100
Hi,
Please find enclosed 2 patches.
- Voip_calls_dlg.c.patch fixes a problem that appears with a release
compiled with GTK 2.8 + Visual Studio 2003. It seems g_snprintf can
corrupt memory when a length bigger than the array size is provided in
the second parameter (even if the generated string is smaller than the
array actual size!!)
- graph_analysis.c.patch fixes a memory corruption problem easy to
reproduce. Just open the pcap file enclosed, select "Statistics"->"Flow
Graph" and activate the "Network source/destination addresses" radio
button before pressing OK. You'll see a crash dump.
Thanks to check in
Best Regards
Laurent

Attachment: voip_calls_dlg.c.patch
Description: voip_calls_dlg.c.patch

Attachment: graph_analysis.c.patch
Description: graph_analysis.c.patch

Attachment: call-A-Proxy_B-B_forked.pcap
Description: call-A-Proxy_B-B_forked.pcap