bug-gnu-chess
[Top][All Lists]
Advanced

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

bug report


From: Rong Yuming
Subject: bug report
Date: Sat, 21 Jun 2003 19:18:24 +0800

Hi,
GNU Chess 5.06,  "init.c" line 664
   TreePtr[0] = TreePtr[1] = Tree;

I suggest to change to
   TreePtr[0]= Tree;
   TreePtr[1]=TreePtr[0]+1;
Because in "genmove.c" line 780
    --TreePtr[ply+1];
    *p = *TreePtr[ply+1];
    --p;
The pointer *p may temporarily exceeds the array Tree[] lower bound.

Do you think it right?

Best regards
Rong Yuming -- a Chinese chess fan

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus





reply via email to

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