]> 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:56 +0000 (19:37 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 25 Aug 2010 19:37:56 +0000 (19:37 +0000)
commitc76a4f8dea8f8f349ac3de635179cb4f03be658f
treef2ad9156d276d5485ad494eb7ad2880441959eb1
parent52ba9a537bf60381aa50202e3fd9f1d473422e8f
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