diff options
author | Bruce Momjian | 2005-09-25 03:18:16 +0000 |
---|---|---|
committer | Bruce Momjian | 2005-09-25 03:18:16 +0000 |
commit | 6a2c659b31879d269c39374757968561b689bf03 (patch) | |
tree | 04ef8253039a5736e45aa41087b0265396e67950 /doc/bug.template | |
parent | 8fb4451a4d6b0494ea210d43d2234701d4bc9002 (diff) |
[ Patch to 7.4.X.]
In several places PL/Python was calling PyObject_Str() and then
PyString_AsString() without checking if the former had returned
NULL to indicate an error. PyString_AsString() doesn't expect a
NULL argument, so passing one causes a segmentation fault. This
patch adds checks for NULL and raises errors via PLy_elog(), which
prints details of the underlying Python exception. The patch also
adds regression tests for these checks. All tests pass on my
Solaris 9 box running HEAD and Python 2.4.1.
Diffstat (limited to 'doc/bug.template')
0 files changed, 0 insertions, 0 deletions