]> granicus.if.org Git - postgresql/commit
Catch null pointer returns from PyCObject_AsVoidPtr and PyCObject_FromVoidPtr
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 25 Aug 2010 19:37:43 +0000 (19:37 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 25 Aug 2010 19:37:43 +0000 (19:37 +0000)
commitfbd7353bdcc41357820ab05faf67c6454b4577c9
tree1fb74f9c977131573c40a21d021b21f34d257eb6
parent9005604c65696a5e8347831a8ee0cfc42b34fcb8
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