Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 20422 invoked from network); 22 Jan 2001 04:51:34 -0000 Received: from oe27.law4.hotmail.com (HELO hotmail.com) (216.33.148.20) by h31.sny.collab.net with SMTP; 22 Jan 2001 04:51:34 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 21 Jan 2001 20:51:18 -0800 X-Originating-IP: [63.197.4.216] From: "Lyle Coder" To: References: Subject: Re: XalanText::substringData() BUG? Date: Sat, 6 Jan 2001 12:20:24 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Message-ID: X-OriginalArrivalTime: 22 Jan 2001 04:51:18.0656 (UTC) FILETIME=[F561C000:01C0842E] X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Ok :-) On the link you had sent me a while back, this was the mailing list group I saw... what is the correct mailing list to post my questions too? Thanks Lyle ----- Original Message ----- From: To: Sent: Sunday, January 21, 2001 5:22 PM Subject: Re: XalanText::substringData() BUG? > > Then you should post a documentation bug to the Xerces-C list. The DOM > recommendation is very clear on this, and the code is throwing a > INDEX_SIZE_ERR exception because the second index is out of range. > > By the way, this is _not_ a topic for the general list. > > Dave > > > > > "Lyle Coder" > > ail.com> cc: (bcc: David N Bertoni/CAM/Lotus) > Subject: Re: XalanText::substringData() BUG? > 01/06/2001 > 08:01 AM > Please > respond to > general > > > > > > Hi David, > In the API docs, I see: "If the sum of offset and count exceeds the length, > then all characters to the end of the data are returned" Calling > substringData(0, 1024) seems legal to me on an empty string (0 legnth > string). > > Thanks > Lyle > ----- Original Message ----- > From: > To: > Sent: Sunday, January 21, 2001 7:21 AM > Subject: Re: XalanText::substringData() BUG? > > > > > > This is not a bug. > > > > When I look through the source code, I see no implementation for > > XalanText::substringData(). If you're talking about > > XercesTextBridge::substringData, then you'll need to be more specific > about > > where this is happening. > > > > You should read the DOM recommendation. If the arguments for > substringData > > () are not valid, then an exception will be thrown. This is exactly what > > happens with the Xerces DOM. If you're not catching exceptions, then > your > > program will crash. > > > > Dave > > > > > > > > > > "Lyle Coder" > > > > ail.com> cc: (bcc: David N > Bertoni/CAM/Lotus) > > Subject: > XalanText::substringData() BUG? > > 01/05/2001 > > 07:38 PM > > Please > > respond to > > general > > > > > > > > > > > > I'm seeing that if the XalanText node contains no data, calling > > substringData(0, 1024) causes a seg fault (actually any number for the > max > > size) > > > > Is this a bug or is the semantics to always check for the node to contain > > data? Incidentally getData() does not crash > > > > Thanks > > Lyle > > > > --------------------------------------------------------------------- > > In case of troubles, e-mail: webmaster@xml.apache.org > > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org > > For additional commands, e-mail: general-help@xml.apache.org > > > > > > > > > > > > > > --------------------------------------------------------------------- > > In case of troubles, e-mail: webmaster@xml.apache.org > > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org > > For additional commands, e-mail: general-help@xml.apache.org > > > > > > --------------------------------------------------------------------- > In case of troubles, e-mail: webmaster@xml.apache.org > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org > For additional commands, e-mail: general-help@xml.apache.org > > > > > > > --------------------------------------------------------------------- > In case of troubles, e-mail: webmaster@xml.apache.org > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org > For additional commands, e-mail: general-help@xml.apache.org > >