diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2023-11-21 14:55:29 +0100 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2023-11-21 14:55:29 +0100 |
commit | 24ea53dcfab7fe463c0cf56095e9fe5d23cdb748 (patch) | |
tree | 5eff8074d38bff21075dc669f740da977f38ea2a /src/backend/libpq/be-secure-gssapi.c | |
parent | e83aa9f92fdd88c2912cc43a61fd9f59f4c8f4d3 (diff) | |
download | postgresql-24ea53dcfab7fe463c0cf56095e9fe5d23cdb748.tar.gz postgresql-24ea53dcfab7fe463c0cf56095e9fe5d23cdb748.zip |
Avoid overflow in fe_utils' printTable()
The original code would miscalculate the total number of cells when the
table to print has more than ~4 billion cells, leading to an unnecessary
error. Repair by changing some computations to be 64-bits wide. Add
some necessary overflow checks.
Author: Hongxu Ma <interma@outlook.com>
Discussion: https://postgr.es/m/TYBP286MB0351B057B101C90D7C1239E6B4E2A@TYBP286MB0351.JPNP286.PROD.OUTLOOK.COM
Diffstat (limited to 'src/backend/libpq/be-secure-gssapi.c')
0 files changed, 0 insertions, 0 deletions