According to Jim Cole:
> I think there is a bug in htnotify's readPreAndPostamble(). Both
> htnotify_prefix_file and htnotify_suffix_file have a default
> value of "", but the code only checks for NULL when examining the
> values of prefixfile and suffixfile. The code then proceeds to
> create ifstream objects using the default values. Finally, the
> streams are checked with 'if (! in.bad())'; however the ifstream
> constructor sets failbit, rather than badbit, when it is unable
> to open the specified file. The result is that the code drops
> into a while loop and starts extracting from an undefined stream
> object.
> 
> The problem doesn't occur in the 3.2 branch because in addition
> to checking for NULL prefixfile/suffixfile, the code also checks
> the values of *prefixfile and *suffixfile.

Yes, this was reported just a few weeks ago, and a patch was provided.
See ftp://ftp.ccsf.org/htdig-patches/3.1.6/

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to