fix parser overflow bug: vars should be reset even when addresses would not
change. git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1466 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
4
C/grow.c
4
C/grow.c
@@ -1336,6 +1336,10 @@ static int do_growtrail(long size, int contiguous_only, int in_parser, tr_fr_ptr
|
||||
execute_growstack(size, TRUE, in_parser, old_trp, tksp, vep);
|
||||
} else {
|
||||
YAPEnterCriticalSection();
|
||||
if (in_parser) {
|
||||
TrDiff = LDiff = GDiff = DelayDiff = XDiff = HDiff = 0;
|
||||
AdjustScannerStacks(tksp, vep);
|
||||
}
|
||||
Yap_TrailTop += size;
|
||||
YAPLeaveCriticalSection();
|
||||
}
|
||||
|
Reference in New Issue
Block a user