|
From: Gilles D. <gr...@sc...> - 2002-09-05 16:43:57
|
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: <gr...@sc...> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/ Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada) |