| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "Julian" <julan(at)internode(dot)on(dot)net> |
| Cc: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | Re: BUG #3523: plpython crash |
| Date: | 2007-08-10 03:18:16 |
| Message-ID: | 9014.1186715896@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
"Julian" <julan(at)internode(dot)on(dot)net> writes:
> --see if this crashes for you.
Yup. I think this'll fix it:
Index: plpython.c
===================================================================
RCS file: /cvsroot/pgsql/src/pl/plpython/plpython.c,v
retrieving revision 1.90
diff -c -r1.90 plpython.c
*** plpython.c 21 Nov 2006 21:51:05 -0000 1.90
--- plpython.c 10 Aug 2007 02:01:04 -0000
***************
*** 1237,1242 ****
--- 1237,1243 ----
"proargnames must have the same number of elements "
"as the function has arguments");
proc->argnames = (char **) PLy_malloc(sizeof(char *) * proc->nargs);
+ memset(proc->argnames, 0, sizeof(char *) * proc->nargs);
}
}
for (i = 0; i < fcinfo->nargs; i++)
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | irek_m | 2007-08-10 13:30:37 | BUG #3530: Can't start as service if sb created 'c:\program' file |
| Previous Message | Tom Lane | 2007-08-09 23:12:42 | Re: BUG #3525: Lithuanian characters doesn't work in queries with regular expressions |