diff options
author | Bruce Momjian | 2005-09-23 21:02:37 +0000 |
---|---|---|
committer | Bruce Momjian | 2005-09-23 21:02:37 +0000 |
commit | 341c3399da6f58e6aaaf38d96af0656efe923a52 (patch) | |
tree | cdc33a4309c4ad0878901891573caf9b4ae819e2 /doc/src | |
parent | 9516724bd7aab58745eb0fb8b73fb6449272adf1 (diff) |
Backpatch to 8.0.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/src')
0 files changed, 0 insertions, 0 deletions