wireshark/plugins/mgcp
Guy Harris 9c89cdaaa3 strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delenda
est.  Use g_ascii_strcasecmp() and g_ascii_strncasecmp(), and supply our
own versions if they're missing from GLib (as is the case with GLib
1.x).

In the code to build the list of named fields for Diameter, don't use
g_strdown(); do our own g_ascii_-style upper-case to lower-case mapping
in the hash function and use g_ascii_strcasecmp() in the compare
function.

We do this because there is no guarantee that toupper(), tolower(), and
functions that use them will, for example, map between "I" and "i" in
all locales; in Turkish locales, for example, there are, in both
upper case and lower case, versions of "i" with and without a dot, and
the upper-case version of "i" is "I"-with-a-dot and the lower-case
version of "I" is "i"-without-a-dot.  This causes strings that should
match not to match.

This finishes fixing bug 2010 - an earlier checkin prevented the crash
(as there are other ways to produce the same crash, e.g. a bogus
dictionary.xml file), but didn't fix the case-insensitive string matching.

svn path=/trunk/; revision=23623
2007-11-27 18:52:51 +00:00
..
AUTHORS From Lars Roland: 2003-04-16 07:25:12 +00:00
COPYING
ChangeLog ethereal->wireshark updates 2006-05-22 08:14:01 +00:00
INSTALL
Makefile.am Get rid of trailing blank lines. 2007-05-27 18:35:55 +00:00
Makefile.common name change 2006-05-21 05:12:17 +00:00
Makefile.nmake Add .c.obj:: inference rule (to cause "batch compile") 2007-08-27 22:56:27 +00:00
NEWS
moduleinfo.h Convert most other plugin dissectors to use the make-dissector-reg 2006-04-22 20:26:16 +00:00
moduleinfo.nmake Add Windows version info resource. 2006-12-19 22:26:27 +00:00
packet-mgcp.c strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delenda 2007-11-27 18:52:51 +00:00
packet-mgcp.h name change 2006-05-21 05:12:17 +00:00
plugin.rc.in -Add the compiler version to the plugin resource 2007-02-26 20:39:38 +00:00