postgresql/src/backend/utils
Tom Lane 6d493e1a01 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/25226.1487900067@sss.pgh.pa.us
2017-02-23 22:08:10 -05:00
..
adt Add an Assert that enum_cmp_internal() gets passed an FmgrInfo pointer. 2017-02-23 22:08:10 -05:00
cache Consistently declare timestamp variables as TimestampTz. 2017-02-23 15:57:08 -05:00
error Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
fmgr Fix typos in comments. 2017-02-06 11:33:58 +02:00
hash Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
init Fix typos in comments. 2017-02-06 11:33:58 +02:00
mb Add KOI8-U map files to Makefile. 2017-02-02 14:12:35 +02:00
misc Remove now-dead code for !HAVE_INT64_TIMESTAMP. 2017-02-23 14:04:43 -05:00
mmgr Make dsa_allocate interface more like MemoryContextAlloc. 2017-02-19 13:59:53 +05:30
resowner Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
sort Don't create "holes" in BufFiles, in the new logtape code. 2017-02-01 12:17:38 +02:00
time Consistently declare timestamp variables as TimestampTz. 2017-02-23 15:57:08 -05:00
.gitignore Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
errcodes.txt Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Gen_dummy_probes.pl Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Gen_dummy_probes.sed Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Gen_fmgrtab.pl Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
generate-errcodes.pl Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Makefile Fix parallel make issue with new fmgrprotos.h 2017-01-23 15:36:27 -05:00
probes.d Rename dtrace probes for ongoing xlog -> wal conversion. 2017-02-09 16:40:19 -05:00