Re: [htdig3-dev] "&" symbol caused core dump


Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Mon, 23 Aug 1999 10:18:14 -0500 (CDT)


According to Vadim Chekan:
> Symbol "&" in HTML file caused core dump.
> HTML.cc:249
>
> q = (unsigned char*)strchr((char *)position, ';');
> // Need check if q==0;
> if (q <= position+10)
> { // got ending, looks like valid SGML entity
> scratch = 0;
> scratch.append((char*)position, q+1 - position);
> ^^^^^^^^^^^^^^^ got
> paramater<0 if q=0

Oops! Thanks for the info. I've put in the proper test now.

-- 
Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev@htdig.org containing the single word "unsubscribe" in the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Mon Aug 23 1999 - 08:21:02 PDT