Mon Feb 23 11:09:42 PST 2009
- Previous message: [Slony1-commit] slony1-engine RELEASE
- Next message: [Slony1-commit] slony1-engine/src Makefile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv10499/src/backend
Modified Files:
Tag: REL_2_0_STABLE
slony1_funcs.c
Log Message:
Fix for bug #63 - logtrigger() array overrun
Index: slony1_funcs.c
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.c,v
retrieving revision 1.68
retrieving revision 1.68.2.1
diff -C2 -d -r1.68 -r1.68.2.1
*** slony1_funcs.c 24 Sep 2008 19:54:09 -0000 1.68
--- slony1_funcs.c 23 Feb 2009 19:09:40 -0000 1.68.2.1
***************
*** 652,655 ****
--- 652,658 ----
attkind_idx++;
+ if (!attkind[attkind_idx])
+ elog(ERROR, "Slony-I: no key columns found in logTrigger() attkind parameter");
+
if (attkind[attkind_idx] == 'k')
break;
***************
*** 695,698 ****
--- 698,703 ----
attkind_idx++;
+ if (!attkind[attkind_idx])
+ break;
if (attkind[attkind_idx] != 'k')
continue;
***************
*** 762,765 ****
--- 767,772 ----
attkind_idx++;
+ if (!attkind[attkind_idx])
+ break;
if (attkind[attkind_idx] != 'k')
continue;
- Previous message: [Slony1-commit] slony1-engine RELEASE
- Next message: [Slony1-commit] slony1-engine/src Makefile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list