diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2024-06-07 16:45:56 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2024-06-07 16:45:56 -0400 |
commit | 00ac25a3c365004821e819653c3307acd3294818 (patch) | |
tree | 9c6eba63a77445ace940e6ed972003542b9e73b4 /src/backend/utils/adt/jsonpath_exec.c | |
parent | 7ed8ce8a469b02fa58276c6035758749ae469bcf (diff) | |
download | postgresql-00ac25a3c365004821e819653c3307acd3294818.tar.gz postgresql-00ac25a3c365004821e819653c3307acd3294818.zip |
Tighten test_predtest's input checks, and improve error messages.
test_predtest() neglected to consider the possibility that
SPI_plan_get_cached_plan would return NULL. This led to a core
dump if the input (incorrectly) contains more than one SQL
command.
While here, let's expend more than zero effort on the error
message for this case and nearby ones.
Per (half of) bug #18483 from Alexander Kozhemyakin.
Back-patch to all supported branches, not because this is
very significant (it's merely test scaffolding) but to make
our world a bit safer for fuzz testing.
Discussion: https://postgr.es/m/18483-30bfff42de238000@postgresql.org
Diffstat (limited to 'src/backend/utils/adt/jsonpath_exec.c')
0 files changed, 0 insertions, 0 deletions