Re: [ANN] XML::SAX::ExpatXS 1.30
by Petr Cimprich other posts by this author
Jul 3 2007 4:34AM messages near this date
view in the new Beta List Site
Re: [ANN] XML::SAX::ExpatXS 1.30
|
[ANN] XML::SAX::ExpatXS 1.31
& XSLT Bjoern Hoehrmann wrote:
> UTF-8 encoded strings do not contain 0xC0, 0xC1, 0xF5-0xFF, any of those
> work for me as far as Expat is concerned. You are right that ExpatXS seg
> faults, but that's happening in Expat.XS startElement(...) which ... can
> be fixed like so:
>
> --- ExpatXS.xs 2007-07-03 12:57:23.609375000 +0200
> +++ ExpatXS.xs.new 2007-07-03 12:56:26.296875000 +0200
> @@ -44,7 +44,7 @@
>
> #define BUFSIZE 32768
>
> -#define NSDELIM '}'
> +#define NSDELIM -1
>
> typedef struct {
> SV* self_sv;
> @@ -657,7 +657,7 @@
> sv_catpvn(keyname, key, pos - key);
> // -pc -
> sv_catpvn(keyname, "}", 1);
> - sv_catpv(keyname, strstr(key, "}")+1);
> + sv_catpv(keyname, strchr(key, NSDELIM)+1);
>
> }
> else {
>
> At least that passes the test suite without a crash.
You are right. I was unaware of this hard coded occurrence.
--
Petr Cimprich
Ginger Alliance
www.gingerall.com
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Petr Cimprich
Bjoern Hoehrmann
Petr Cimprich
Bjoern Hoehrmann
Petr Cimprich
Petr Cimprich
|