]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Catch null pointer returns from PyCObject_AsVoidPtr and PyCObject_FromVoidPtr
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 25 Aug 2010 19:37:48 +0000 (19:37 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 25 Aug 2010 19:37:48 +0000 (19:37 +0000)
commit7499831ce6084227f714bc3430df417511e5ea46
treec3a01c399b4682be92cc512964c83adc166ea373
parent01faed3678de2096ae5f960363c468d695b52462
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
src/pl/plpython/plpython.c