Re: Difficulties encountered compiling Amaya 9.1 on Solaris 9

On Wed, Mar 23, 2005 at 09:05:46AM +0100, Rich Kulawiec wrote:
> Having gotten past the issue above, I'm now hitting a compilation
> error in "annotlib" which appears to be a consequence of (maybe)
> a missing inclusion.

This was eventually traced back to a crash in writeapp -- which is
built and executed during compilation.  I've made the following
change around line 604 of writeapp.c (in WriteIncludeFile()):

was:
	for (i = 0; i < pSSchema->SsNRules; i++) {

is:
	for (i = 0; i < pSSchema->SsNRules && i < 6; i++) {

which I'll freely admit is merely a kludge, but at least it does seem
to prevent the crash and permit Amaya to be built.  When I get a chance,
I hope to dig into this more thoroughly and find the real reason behind
the problem -- I suspect an array index incremented past the end of the
 array.

---Rsk

Received on Thursday, 12 May 2005 07:16:09 UTC