Re: [HACKERS] Bounds error in LockMethodInit().

2003-08-15 Thread Tom Lane
Kurt Roeckx <[EMAIL PROTECTED]> writes: > I have no idea what that numModes++ line is doing there. I think the notion is that the lock modes are counted in 1-based numbering; the copy loop starts at 0 so it needs an extra iteration. Look at the uses of numLockModes for evidence. (Note the extra z

[HACKERS] Bounds error in LockMethodInit().

2003-08-15 Thread Kurt Roeckx
In lmgr.c you have a static LOCKMASK LockConflicts[] with 9 elements in it. You call LockMethodTableInit() with that pointer, and MAX_LOCKMODES - 1 (10 - 1 = 9) That calls LockMethodInit with the same arguments, but it does numModes++. So you basicly have a for loop that looks like: for (i = 0;