diff options
author | Dean Rasheed <dean.a.rasheed@gmail.com> | 2023-10-29 15:46:04 +0000 |
---|---|---|
committer | Dean Rasheed <dean.a.rasheed@gmail.com> | 2023-10-29 15:51:53 +0000 |
commit | b2d55447a563036579d6777f64a7483dceeab6ea (patch) | |
tree | 4bb29b19a118c7fac9a02d57ec080b3e87e066b6 /src/backend/utils/adt/pgstatfuncs.c | |
parent | 849172ff4883d44168f96f39d3fde96d0aa34c99 (diff) | |
download | postgresql-b2d55447a563036579d6777f64a7483dceeab6ea.tar.gz postgresql-b2d55447a563036579d6777f64a7483dceeab6ea.zip |
Guard against overflow in make_interval().
The original code did very little to guard against integer or floating
point overflow when computing the interval's fields. Detect any such
overflows and error out, rather than silently returning bogus results.
Joseph Koshakow, reviewed by Ashutosh Bapat and me.
Discussion: https://postgr.es/m/CAAvxfHcm1TPwH_zaGWuFoL8pZBestbRZTU6Z%3D-RvAdSXTPbKfg%40mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/pgstatfuncs.c')
0 files changed, 0 insertions, 0 deletions