1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-22 17:42:17 +03:00
Files
postgres/src/backend
Tom Lane b081fe4199 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
2023-03-14 19:17:31 -04:00
..
2023-03-06 13:21:33 +09:00
2023-02-17 14:26:42 +09:00
2023-01-02 15:00:37 -05:00
2023-01-02 15:00:37 -05:00
2023-03-10 07:10:43 +01:00
2023-01-18 10:26:15 -08:00
2023-01-02 15:00:37 -05:00
2023-01-02 15:00:37 -05:00
2023-03-06 16:41:05 +09:00
2023-01-02 15:00:37 -05:00
2023-02-17 14:26:42 +09:00