gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] 3.3.17: arraybound violation in corner_matchpat


From: Paul Pogonyshev
Subject: Re: [gnugo-devel] 3.3.17: arraybound violation in corner_matchpat
Date: Tue, 4 Mar 2003 19:19:10 +0200
User-agent: KMail/1.4.3

Arend Bayer wrote:
> Teun wrote:
> > gnugo 3.3.17 gives an arraybound violation on line 1369 in
> > corner_matchpat for filllib test 4. pos becomes -12 in this pass of the j
> > loop, which is a problem for the IS_STONE(board[pos]) test.
>
> Thanks for the testing. I really wonder how many inexplicable bugs we'd
> have without your arraybounds checking...
>
> Paul, do you agree with the fix below?

yes. sorry for all the bugs i introduced there. in this case it doesn't matter
if we have +0 or +1 for out-of-board positions, but this is an invitation for
segmentation faults.

Paul






reply via email to

[Prev in Thread] Current Thread [Next in Thread]