Thread: pgsql: Catch null pointer returns from PyCObject_AsVoidPtr and

pgsql: Catch null pointer returns from PyCObject_AsVoidPtr and

From
petere@postgresql.org (Peter Eisentraut)
Date:
Log Message:
-----------
Catch null pointer returns from PyCObject_AsVoidPtr and PyCObject_FromVoidPtr

This is reproducibly possible in Python 2.7 if the user turned
PendingDeprecationWarning into an error, but it's theoretically also possible
in earlier versions in case of exceptional conditions.

backpatched to 8.0

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/pl/plpython:
        plpython.c (r1.90.2.7 -> r1.90.2.8)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/plpython.c?r1=1.90.2.7&r2=1.90.2.8)