This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Fwd: Re: xerces-c , ... [xerces-c Bug Crash Solved]
- From: Pavel Tsekov <ptsekov at gmx dot net>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 7 Nov 2002 14:24:50 +0100 (MET)
- Subject: Fwd: Re: xerces-c , ... [xerces-c Bug Crash Solved]
- References: <OE43nWwAeRaNgEpTX5V0000029d@hotmail.com>
I think this belongs to cygwin-apps.
--- Weitergeleitete Nachricht / Forwarded Message ---
Date: Thu, 7 Nov 2002 22:14:04 +1100
From: "Gareth Pearce" <tilps@hotmail.com>
To: "Abraham Backus" <abraham@backus.com>, <cygwin@cygwin.com>
Subject: Re: xerces-c , ... [xerces-c Bug Crash Solved]
> FOUND IT!!!
>
> *dances about crazily*
>
> *cough* okay back to reality
>
> I thought it was dieing in fopen - but i was wrong - it was dieing in
> strcasecmp
>
> utils/Compilers/GCCDefs.cpp - is very stuffed up
>
> it includes string.h
>
> and cygwin string.h - #define stricmp strcasecmp - which is the only
> reason
> why GCCDefs.cpp exists
>
> this causes GCCDefs.cpp to define a function strcasecmp - which calls
> strcasecmp
> same thing with strnicmp/strncasecmp
> so any program which uses strcasecmp (or any program which causes xerces-c
> to try and call stricmp/strnicmp) - dies with an infinite loop causing
> stack
> overflow.
>
> this is a porting bug in xerces-c (or a cygwin conformance bug...
> depending
> on your point of view)
>
> a simple #ifndef __CYGWIN__ around the declaration in GCCDefs.hpp and the
> definition in GCCDefs.cpp
>
> and life is good (or seems to be)
>
> Please patch :)
>
> Gareth
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!