aboutsummaryrefslogtreecommitdiff
path: root/contrib/pageinspect/gistfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-02-12 12:50:55 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2023-02-12 12:50:55 -0500
commit5e80d3515488a12f776ba14a07fbb5aa6b3ef013 (patch)
tree33caf25ddfa79780e2741038f3459e61a36a4c5d /contrib/pageinspect/gistfuncs.c
parent156c049beed9d3f243cdceaf89456ea6a2995493 (diff)
downloadpostgresql-5e80d3515488a12f776ba14a07fbb5aa6b3ef013.tar.gz
postgresql-5e80d3515488a12f776ba14a07fbb5aa6b3ef013.zip
Avoid dereferencing an undefined pointer in DecodeInterval().
Commit e39f99046 moved some code up closer to the start of DecodeInterval(), without noticing that it had been implicitly relying on previous checks to reject the case of empty input. Given empty input, we'd now dereference a pointer that hadn't been set, possibly leading to a core dump. (But if we fail to provoke a SIGSEGV, nothing bad happens, and the expected syntax error is thrown a bit later.) Per bug #17788 from Alexander Lakhin. Back-patch to v15 where the fault was introduced. Discussion: https://postgr.es/m/17788-dabac9f98f7eafd5@postgresql.org
Diffstat (limited to 'contrib/pageinspect/gistfuncs.c')
0 files changed, 0 insertions, 0 deletions