summaryrefslogtreecommitdiff
path: root/src/tutorial/complex.c
diff options
context:
space:
mode:
authorTom Lane2017-02-24 03:08:10 +0000
committerTom Lane2017-02-24 03:08:10 +0000
commit6d493e1a013514a6f0abb5d30d08219c1831cfec (patch)
treeaa5216c7cc724a5b11205ee49be6296d8d7efd53 /src/tutorial/complex.c
parentc29aff959dc64f7321062e7f33d8c6ec23db53d3 (diff)
Add an Assert that enum_cmp_internal() gets passed an FmgrInfo pointer.
If someone were to try to call one of the enum comparison functions using DirectFunctionCallN, it would very likely seem to work, because only in unusual cases does enum_cmp_internal() need to access the typcache. But once such a case occurred, code like that would crash with a null pointer dereference. To make an oversight of that sort less likely to escape detection, add a non-bypassable Assert that fcinfo->flinfo isn't NULL. Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions