Ethereal-dev: [Ethereal-dev] [PATCH] Fixes Ethereal Hang Condition

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

From: "Michael J. Lynch" <mlynch@xxxxxxxx>
Date: Tue, 14 Feb 2006 09:27:10 -0600
Problem:

	Starting ethereal by typing "ethereal" in a console window
causes ethereal to hang.


Diagnosis:

	If the first component of the PATH environment variable is
*not* the path to the ethereal executable and ethereal is run by
typing *ethereal* at a command prompt, ethereal will hang.


Problem:

	Code in epan/filesystem.c that is supposed to step over
each component of the PATH environment variable fails to increment
the *path_start* pointer resulting in an infinite loop.


Fix:
	Increment the pointer


SVN diff Patch:


Index: epan/filesystem.c
===================================================================
--- epan/filesystem.c   (revision 17281)
+++ epan/filesystem.c   (working copy)
@@ -351,6 +351,7 @@
                                 */
                                break;
                        }
+                       path_start += path_component_len;
                        if (*path_start == ':')
                                path_start++;
                        g_free(path);



--
Michael J. Lynch

What if the hokey pokey IS what it's all about -- author unknown