diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-03-14 19:17:31 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-03-14 19:17:31 -0400 |
commit | 7cac191057ea8d6f2358f0504039d29e6c5e2141 (patch) | |
tree | 84ba58c51015803882afbfdd9dcfe3ebb1b0ddd0 /src/backend/utils/adt/tsquery_gist.c | |
parent | 7c509f7e5a817ea676479d33bb975d72785ff106 (diff) | |
download | postgresql-7cac191057ea8d6f2358f0504039d29e6c5e2141.tar.gz postgresql-7cac191057ea8d6f2358f0504039d29e6c5e2141.zip |
Fix corner case bug in numeric to_char() some more.
The band-aid applied in commit f0bedf3e4 turns out to still need
some work: it made sure we didn't set Np->last_relevant too small
(to the left of the decimal point), but it didn't prevent setting
it too large (off the end of the partially-converted string).
This could result in fetching data beyond the end of the allocated
space, which with very bad luck could cause a SIGSEGV, though
I don't see any hazard of interesting memory disclosure.
Per bug #17839 from Thiago Nunes. The bug's pretty ancient,
so back-patch to all supported versions.
Discussion: https://postgr.es/m/17839-aada50db24d7b0da@postgresql.org
Diffstat (limited to 'src/backend/utils/adt/tsquery_gist.c')
0 files changed, 0 insertions, 0 deletions