Closed GoogleCodeExporter closed 9 years ago
The error is unrelated to directories. The reported error is an errno that
wasn't cleaned up after trying to open a file as a directory (which is trapped
otherwise).
The real problem is in SetFisherScores, and the fault occurs between exiting
SetFisherScores and re-entering wndchrm.cpp. The final statement of
SetFisherScores is executed. The statement in wndchrm.cpp following the
SetFisherScores is not.
Original comment by i...@cathilya.org
on 15 Feb 2011 at 7:53
Boy, that's fun.
The error was a buffer overrun using sprintf.
In the code below (TrainingSet::SetFisherScores):
sprintf( feature_string, "%ld. %s: %f [%d]\n",
signature_count - sig_index,
FeatureGroupNames[ sig_index2 ],
FeatureGroupValues[ sig_index2 ],
FeatureGroupCount[ sig_index2 ] );
Substitute a %g for the %f.
Original comment by i...@cathilya.org
on 15 Feb 2011 at 8:46
Original comment by christop...@nih.gov
on 17 Feb 2011 at 11:28
Original issue reported on code.google.com by
christop...@nih.gov
on 15 Feb 2011 at 5:08